|
||||||||||
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.Tag
A Tag
object acts as a Label by containing a
String
that is a part-of-speech tag.
Constructor Summary | |
Tag()
Constructs a Tag object. |
|
Tag(Label lab)
Creates a new tag whose tag value is the value of any class that supports the Label interface. |
|
Tag(String tag)
Constructs a Tag object. |
Method Summary | |
void |
setTag(String tag)
Set the tag value for the label (if one is stored). |
String |
tag()
Return the tag value of the label (or null if none). |
Methods inherited from class edu.stanford.nlp.trees.StringLabel |
factory, labelFactory, 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 |
Constructor Detail |
public Tag()
public Tag(String tag)
tag
- The tag namepublic Tag(Label lab)
Label
interface.
lab
- The label to be used as the basis of the new TagMethod Detail |
public String tag()
HasTag
tag
in interface HasTag
public void setTag(String tag)
HasTag
setTag
in interface HasTag
tag
- The tag value for the label
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |