edu.stanford.nlp.trees.international.negra
Class NegraLabel
java.lang.Object
edu.stanford.nlp.ling.ValueLabel
edu.stanford.nlp.ling.StringLabel
edu.stanford.nlp.trees.international.negra.NegraLabel
- All Implemented Interfaces:
- Label, Serializable, Comparable<ValueLabel>
public class NegraLabel
- extends StringLabel
- See Also:
- Serialized Form
FEATURE_SEP
public static final String FEATURE_SEP
- See Also:
- Constant Field Values
NegraLabel
public NegraLabel(String str)
NegraLabel
public NegraLabel(String str,
Map features)
NegraLabel
public NegraLabel(String str,
String edge,
Map features)
labelFactory
public LabelFactory labelFactory()
- Description copied from class:
StringLabel
- Return a factory for this kind of label
(i.e.,
StringLabel
).
The factory returned is always the same one (a singleton).
- Specified by:
labelFactory
in interface Label
- Overrides:
labelFactory
in class StringLabel
- Returns:
- The label factory
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 class:
ValueLabel
- Return a string representation of the label. This will just
be the
value()
if it is non-null
,
and the empty string otherwise.
- Specified by:
toString
in interface Label
- Overrides:
toString
in class ValueLabel
- Returns:
- The string representation
Stanford NLP Group