public class Token extends Object implements Serializable, PropertyHolder
| Modifier and Type | Method and Description |
|---|---|
PropertyList |
getFeatures() |
double |
getFeatureValue(String key) |
double |
getNumericProperty(String key) |
PropertyList |
getProperties() |
Object |
getProperty(String key) |
String |
getText() |
boolean |
hasProperty(String key) |
void |
setFeatures(PropertyList pl) |
void |
setFeatureValue(String key,
double value) |
void |
setNumericProperty(String key,
double value) |
void |
setProperties(PropertyList newProperties) |
void |
setProperty(String key,
Object value) |
void |
setText(String t) |
FeatureVector |
toFeatureVector(Alphabet dict,
boolean binary) |
String |
toString() |
public Token(String s)
public String getText()
public void setText(String t)
public FeatureVector toFeatureVector(Alphabet dict, boolean binary)
toFeatureVector in interface PropertyHolderpublic void setProperty(String key, Object value)
setProperty in interface PropertyHolderpublic void setNumericProperty(String key, double value)
setNumericProperty in interface PropertyHolderpublic PropertyList getProperties()
getProperties in interface PropertyHolderpublic void setProperties(PropertyList newProperties)
setProperties in interface PropertyHolderpublic Object getProperty(String key)
getProperty in interface PropertyHolderpublic double getNumericProperty(String key)
getNumericProperty in interface PropertyHolderpublic boolean hasProperty(String key)
hasProperty in interface PropertyHolderpublic void setFeatureValue(String key, double value)
setFeatureValue in interface PropertyHolderpublic double getFeatureValue(String key)
getFeatureValue in interface PropertyHolderpublic PropertyList getFeatures()
getFeatures in interface PropertyHolderpublic void setFeatures(PropertyList pl)
setFeatures in interface PropertyHolderCopyright © 2019 JULIE Lab, Germany. All rights reserved.