edu.stanford.nlp.tagger.maxent
Class FeatureKey
java.lang.Object
edu.stanford.nlp.tagger.maxent.FeatureKey
public class FeatureKey
- extends 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.
- Author:
- Kristina Toutanova, with minor changes by Daniel Cer
FeatureKey
public FeatureKey()
FeatureKey
protected FeatureKey(int num,
String val,
String tag)
set
protected void set(int num,
String val,
String tag)
setTag
protected void setTag(String tag)
toString
public String toString()
- Overrides:
toString
in class Object
save
protected void save(OutDataStreamFile f)
throws IOException
- Throws:
IOException
read
protected void read(DataInputStream inf)
throws IOException
- Throws:
IOException
hashCode
public int hashCode()
- Overrides:
hashCode
in class Object
equals
public boolean equals(Object o)
- Overrides:
equals
in class Object
Stanford NLP Group