public class Fragment extends Object
Constructor and Description |
---|
Fragment()
Creates a empty split element
|
Fragment(String aWord)
Creates a split element with a word but no linking morpheme
|
Fragment(String aWord,
String aMorpheme)
Creates a split element with a word and a linking morpheme.
|
Modifier and Type | Method and Description |
---|---|
static Fragment |
createFromString(String aElement)
Creates a split element from string.
|
boolean |
equals(Object obj) |
String |
getMorpheme()
Returns the linking morpheme of the split element.
|
String |
getWord()
Returns the word of the split element.
|
String |
getWordWithMorpheme() |
int |
hashCode() |
boolean |
hasMorpheme()
Checks if this element has an morpheme.
|
void |
setMorpheme(String aMorpheme)
Sets the linking morpheme of the split element.
|
void |
setSplitAgain(boolean aSplitAgain)
Set the splitAgain variable
|
void |
setWord(String aWord)
Sets the word of the split element.
|
boolean |
shouldSplitAgain()
Checks if this split element should be split again by the algorithm.
|
String |
toString() |
String |
toStringWithoutMorpheme()
Similar to the toString method, but combines morpheme and word
|
public Fragment()
public Fragment(String aWord)
aWord
- a word.public static Fragment createFromString(String aElement)
aElement
- a string.public String getWord()
public String getWordWithMorpheme()
public void setWord(String aWord)
aWord
- the word of the split element.public String getMorpheme()
public boolean hasMorpheme()
public void setMorpheme(String aMorpheme)
aMorpheme
- the linking morpheme.public String toStringWithoutMorpheme()
public boolean shouldSplitAgain()
public void setSplitAgain(boolean aSplitAgain)
aSplitAgain
- if this split element should be split again.Copyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.