public class Morpheme extends Object implements Serializable
Constructor and Description |
---|
Morpheme()
Default constructor.
|
Morpheme(String word,
String lemma,
String partOfSpeech)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object value) |
String |
getLemma()
Returns the lemma (canonical form).
|
String |
getPartOfSpeech()
Returns part of speech.
|
String |
getWord()
Returns the term.
|
int |
hashCode() |
void |
setLemma(String lemma)
Sets the lemma (canonical form).
|
void |
setPartOfSpeech(String partOfSpeech)
Sets part of speech.
|
void |
setWord(String word)
Sets the term.
|
String |
toString() |
public String getWord()
public void setWord(String word)
word
- Wordpublic String getLemma()
public void setLemma(String lemma)
lemma
- Lemma (canonical form of the word)public String getPartOfSpeech()
public void setPartOfSpeech(String partOfSpeech)
partOfSpeech
- Part of speech