|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.stanford.nlp.classify.Feature
A wrapper for a String which allows you to add other attributes, such as weights, to a Feature.
Constructor Summary | |
Feature(String value)
Constructor takes a String and creates a Feature. |
Method Summary | |
boolean |
equals(Object f)
Returns true if f is equal to me |
String |
getValue()
Returns my String value |
int |
hashCode()
Allows Features to be hashed and retrieved. |
String |
toString()
Used to print a Feature. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Feature(String value)
Method Detail |
public String getValue()
public String toString()
toString
in class Object
public boolean equals(Object f)
equals
in class Object
public int hashCode()
hashCode
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |