|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--edu.stanford.nlp.trees.AbstractLabel
|
+--edu.stanford.nlp.trees.NullLabel
A NullLabel object acts as a Label with linguistic
attributes, but doesn't actually store or return anything. It returns
null to any requests. Designed to be extended.
| Constructor Summary | |
NullLabel()
|
|
| Method Summary | |
String |
category()
Return the category value of the label (or null if none). |
static LabelFactory |
factory()
Return a factory for this kind of label. |
LabelFactory |
labelFactory()
Return a factory for this kind of label. |
void |
setCategory(String category)
Set the category value for the label (if one is stored). |
void |
setTag(String tag)
Set the tag value for the label (if one is stored). |
void |
setWord(String word)
Set the word value for the label (if one is stored). |
String |
tag()
Return the tag value of the label (or null if none). |
String |
word()
Return the word value of the label (or null if none). |
| Methods inherited from class edu.stanford.nlp.trees.AbstractLabel |
compareTo, equals, hashCode, setFromString, setValue, toString, value |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public NullLabel()
| Method Detail |
public String word()
HasWord
word in interface HasWordpublic void setWord(String word)
HasWord
setWord in interface HasWordword - The word value for the labelpublic String tag()
HasTag
tag in interface HasTagpublic void setTag(String tag)
HasTag
setTag in interface HasTagtag - The tag value for the labelpublic String category()
HasCategory
category in interface HasCategorypublic void setCategory(String category)
HasCategory
setCategory in interface HasCategorypublic LabelFactory labelFactory()
NullLabel.)
The factory returned is always the same one (a singleton).
labelFactory in interface LabellabelFactory in class AbstractLabelpublic static LabelFactory factory()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||