edu.stanford.nlp.tagger.maxent
Class FeatureKey

java.lang.Object
  extended by 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(java.io.DataOutputStream f)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FeatureKey

public FeatureKey()

FeatureKey

protected FeatureKey(int num,
                     java.lang.String val,
                     java.lang.String tag)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

save

protected void save(java.io.DataOutputStream f)
             throws java.io.IOException
Throws:
java.io.IOException

read

protected void read(java.io.DataInputStream inf)
             throws java.io.IOException
Throws:
java.io.IOException

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