public class NegraLabel extends StringLabel
| Modifier and Type | Field and Description |
|---|---|
static String |
FEATURE_SEP |
| Constructor and Description |
|---|
NegraLabel(String str) |
NegraLabel(String str,
Map<String,String> features) |
NegraLabel(String str,
String edge,
Map<String,String> features) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
beginPosition, endPosition, factory, setBeginPosition, setEndPosition, setFromString, setValue, valuecompareTo, equals, hashCodepublic static final String FEATURE_SEP
public NegraLabel(String str)
public LabelFactory labelFactory()
StringLabelStringLabel).
The factory returned is always the same one (a singleton).labelFactory in interface LabellabelFactory in class StringLabelpublic void setEdge(String edge)
public String getEdge()
public String toString()
ValueLabelvalue() if it is non-null,
and the empty string otherwise.toString in interface LabeltoString in class StringLabel