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, value
compareTo, equals, hashCode
public static final String FEATURE_SEP
public NegraLabel(String str)
public LabelFactory labelFactory()
StringLabel
StringLabel
).
The factory returned is always the same one (a singleton).labelFactory
in interface Label
labelFactory
in class StringLabel
public void setEdge(String edge)
public String getEdge()
public String toString()
ValueLabel
value()
if it is non-null
,
and the empty string otherwise.toString
in interface Label
toString
in class StringLabel