|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.stanford.nlp.ie.crf.CRFDatum
public class CRFDatum
Constructor Summary | |
---|---|
CRFDatum(List features)
Constructs a new BasicDatum with the given features and no labels. |
|
CRFDatum(List features,
Object label)
|
Method Summary | |
---|---|
List |
asFeatures()
Returns the collection that this BasicDatum was constructed with. |
boolean |
equals(Object o)
Returns whether the given Datum contains the same features as this Datum. |
Object |
label()
Returns the label for this Datum, or null if none have been set. |
void |
setLabel(Object label)
Removes all currently assigned Labels for this Datum then adds the given Label. |
String |
toString()
Returns a String representation of this BasicDatum (lists features and labels). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CRFDatum(List features, Object label)
public CRFDatum(List features)
Method Detail |
---|
public List asFeatures()
public Object label()
public void setLabel(Object label)
public String toString()
toString
in class Object
public boolean equals(Object o)
equals
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |