edu.stanford.nlp.trees.international.negra
Class NegraLabel
java.lang.Object
edu.stanford.nlp.trees.AbstractLabel
edu.stanford.nlp.trees.StringLabel
edu.stanford.nlp.trees.Category
edu.stanford.nlp.trees.international.negra.NegraLabel
- All Implemented Interfaces:
- Comparable, HasCategory, Label, Serializable
- public class NegraLabel
- extends Category
- implements Label, HasCategory
- See Also:
- Serialized Form
NegraLabel
public NegraLabel()
NegraLabel
public NegraLabel(String str)
setEdge
public void setEdge(String edge)
getEdge
public String getEdge()
setFeatureValue
public void setFeatureValue(String feature,
String value)
featureValue
public String featureValue(String feature)
toString
public String toString()
- Description copied from interface:
Label
- Return a String representation of the label. For a multipart label,
this will return all parts. The
toString()
method
causes a label to spill its guts. It should always return an
empty string rather than null
if there is no value.
- Specified by:
toString
in interface Label
- Overrides:
toString
in class AbstractLabel
- Returns:
- the string representation
Stanford NLP Group