edu.stanford.nlp.tagger.maxent
Class FeatureKey

java.lang.Object
  extended by 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

Constructor Summary
FeatureKey()
           
FeatureKey(int num, String val, String tag)
           
 
Method Summary
 boolean equals(Object o)
           
 int hashCode()
           
 void read(InDataStreamFile inf)
           
 void save(OutDataStreamFile f)
           
 void set(int num, String val, String tag)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureKey

public FeatureKey()

FeatureKey

public FeatureKey(int num,
                  String val,
                  String tag)
Method Detail

set

public void set(int num,
                String val,
                String tag)

toString

public String toString()
Overrides:
toString in class Object

save

public void save(OutDataStreamFile f)

read

public void read(InDataStreamFile inf)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object


Stanford NLP Group