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.
- Author:
- Kristina Toutanova, with minor changes by Daniel Cer
Constructor Summary |
|
FeatureKey()
|
protected |
FeatureKey(int num,
java.lang.String val,
java.lang.String tag)
|
Method Summary |
boolean |
equals(java.lang.Object o)
|
int |
hashCode()
|
protected void |
read(java.io.DataInputStream inf)
|
protected void |
save(OutDataStreamFile f)
|
protected void |
set(int num,
java.lang.String val,
java.lang.String tag)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
FeatureKey
public FeatureKey()
FeatureKey
protected FeatureKey(int num,
java.lang.String val,
java.lang.String tag)
set
protected 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
protected void save(OutDataStreamFile f)
read
protected void read(java.io.DataInputStream 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
Stanford NLP Group