edu.stanford.nlp.trees.international.negra
Class NegraLabel

java.lang.Object
  extended by edu.stanford.nlp.ling.ValueLabel
      extended by edu.stanford.nlp.ling.StringLabel
          extended by edu.stanford.nlp.trees.international.negra.NegraLabel
All Implemented Interfaces:
Label, Serializable, Comparable<ValueLabel>

public class NegraLabel
extends StringLabel

See Also:
Serialized Form

Field Summary
static String FEATURE_SEP
           
 
Constructor Summary
NegraLabel(String str)
           
NegraLabel(String str, Map features)
           
NegraLabel(String str, String edge, Map features)
           
 
Method Summary
 String featureValue(String feature)
           
 String getEdge()
           
 LabelFactory labelFactory()
          Return a factory for this kind of label (i.e., StringLabel).
 void setEdge(String edge)
           
 void setFeatureValue(String feature, String value)
           
 String toString()
          Return a string representation of the label.
 
Methods inherited from class edu.stanford.nlp.ling.StringLabel
factory, setFromString, setValue, value
 
Methods inherited from class edu.stanford.nlp.ling.ValueLabel
compareTo, equals, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FEATURE_SEP

public static final String FEATURE_SEP
See Also:
Constant Field Values
Constructor Detail

NegraLabel

public NegraLabel(String str)

NegraLabel

public NegraLabel(String str,
                  Map features)

NegraLabel

public NegraLabel(String str,
                  String edge,
                  Map features)
Method Detail

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