cc.mallet.types
Interface PropertyHolder
- All Known Implementing Classes:
- StringSpan, Token
public interface PropertyHolder
Author: saunders Created Nov 15, 2005 Copyright (C) Univ. of Massachusetts Amherst, Computer Science Dept.
setProperty
void setProperty(java.lang.String key,
java.lang.Object value)
getProperty
java.lang.Object getProperty(java.lang.String key)
setNumericProperty
void setNumericProperty(java.lang.String key,
double value)
getNumericProperty
double getNumericProperty(java.lang.String key)
getProperties
PropertyList getProperties()
setProperties
void setProperties(PropertyList newProperties)
hasProperty
boolean hasProperty(java.lang.String key)
setFeatureValue
void setFeatureValue(java.lang.String key,
double value)
getFeatureValue
double getFeatureValue(java.lang.String key)
getFeatures
PropertyList getFeatures()
setFeatures
void setFeatures(PropertyList pl)
toFeatureVector
FeatureVector toFeatureVector(Alphabet dict,
boolean binary)