gr.aueb.cs.nlp.postagger
Class WordWithCategory
java.lang.Object
gr.aueb.cs.nlp.postagger.WordWithCategory
Class that describes a pair of a word with its category.
public class WordWithCategory
- extends java.lang.Object
Method Summary |
java.lang.String |
getCategory()
A static method that returns the category (tag) of a WordWithCategory pair. |
java.lang.String |
getWord()
A static method that returns the word (token) of a WordWithCategory pair. |
void |
setCategory(java.lang.String w)
A static method that sets the category (tag) of a WordWithCategory pair. |
void |
setWord(java.lang.String w)
A static method that sets the word (token) of a WordWithCategory pair. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
getWord
public java.lang.String getWord()
A static method that returns the word (token) of a WordWithCategory pair.
- Output: String - the word (token) of the pair.
getCategory
public java.lang.String getCategory()
A static method that returns the category (tag) of a WordWithCategory pair.
- Output: String - the category (tag) of the pair.
setWord
public void setWord(java.lang.String w)
A static method that sets the word (token) of a WordWithCategory pair.
- Input: String - the word (token) to be stored in the pair.
setCategory
public void setCategory(java.lang.String w)
A static method that sets the category (tag) of a WordWithCategory pair.
- Input: String - the category (tag) to be stored in the pair.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object