public class PartOfSpeechTag
extends java.lang.Object
Constructor and Description |
---|
PartOfSpeechTag(java.lang.String term,
java.lang.String posTag)
Create a PartOfSpeech tag for the given term, with the given tag.
|
PartOfSpeechTag(java.lang.String term,
java.lang.String posTag,
PartOfSpeech partOfSpeech)
Create a PartOfSpeech tag for the given word, with the given tag and
PartOfSpeech tag.
|
Modifier and Type | Method and Description |
---|---|
PartOfSpeech |
getPartOfSpeech()
Get the part of speech for the word
|
int |
getSense()
Get the sense for the word.
|
java.lang.String |
getTag()
get the part of speech tag for the word
|
java.lang.String |
getWord()
Get the word
|
void |
setSense(int senseId)
Set the sense for the word.
|
java.lang.String |
toString()
Return a String representation of this PartOfSpeechTag object
|
public PartOfSpeechTag(java.lang.String term, java.lang.String posTag)
term
- the word or termposTag
- the Part of Speech tagpublic PartOfSpeechTag(java.lang.String term, java.lang.String posTag, PartOfSpeech partOfSpeech)
term
- the word or termposTag
- the Part of Speech tagpartOfSpeech
- the PartOfSpeechpublic PartOfSpeech getPartOfSpeech()
public int getSense()
public java.lang.String getTag()
public java.lang.String getWord()
public void setSense(int senseId)
senseId
- the sense id for the wordpublic java.lang.String toString()
toString
in class java.lang.Object