|
||||||||||
| 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.StringLabel
|
+--edu.stanford.nlp.trees.Category
A Category object acts as a Label by containing a
String that is a part-of-speech category.
| Field Summary | |
static String |
EMPTYSTRING
The empty category. |
| Constructor Summary | |
Category()
Constructs a Category object. |
|
Category(Label lab)
Creates a new category whose category value is the value of any class that supports the Label interface. |
|
Category(String category)
Constructs a Category object. |
|
| 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 (i.e., Category). |
LabelFactory |
labelFactory()
Return a factory for this kind of label (i.e., Category). |
void |
setCategory(String category)
Set the category value for the label (if one is stored). |
| Methods inherited from class edu.stanford.nlp.trees.StringLabel |
setFromString, setValue, value |
| Methods inherited from class edu.stanford.nlp.trees.AbstractLabel |
compareTo, equals, hashCode, toString |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String EMPTYSTRING
| Constructor Detail |
public Category()
public Category(String category)
category - The name of the categorypublic Category(Label lab)
Label interface.
lab - The label to be used as the basis of the new Category| Method Detail |
public String category()
HasCategory
category in interface HasCategorypublic void setCategory(String category)
HasCategory
setCategory in interface HasCategorypublic LabelFactory labelFactory()
Category).
The factory returned is always the same one (a singleton).
labelFactory in interface LabellabelFactory in class StringLabelpublic static LabelFactory factory()
Category).
The factory returned is always the same one (a singleton).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||