edu.stanford.nlp.tagger.maxent
Class FeatureKey
java.lang.Object
edu.stanford.nlp.tagger.maxent.FeatureKey
public class FeatureKey
- extends java.lang.Object
Stores a triple of an extractor ID, a feature value (derived from history)
and a y (tag) value. Used to compute a feature number in the loglinear
model.
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FeatureKey
public FeatureKey()
FeatureKey
public FeatureKey(int num,
java.lang.String val,
java.lang.String tag)
set
public void set(int num,
java.lang.String val,
java.lang.String tag)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
save
public void save(OutDataStreamFile f)
read
public void read(InDataStreamFile inf)
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object