|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.nlp.ie.crf.CRFDatum<FEAT,LAB>
public class CRFDatum<FEAT,LAB>
The representation of Datums used internally in CRFClassifier.
| Constructor Summary | |
|---|---|
CRFDatum(java.util.List<FEAT> features,
LAB label)
Constructs a new BasicDatum with the given features and label. |
|
| Method Summary | |
|---|---|
java.util.List<FEAT> |
asFeatures()
Returns the collection that this BasicDatum was constructed with. |
boolean |
equals(java.lang.Object o)
Returns whether the given Datum contains the same features as this Datum. |
int |
hashCode()
|
LAB |
label()
Returns the label for this Datum, or null if none have been set. |
java.lang.String |
toString()
Returns a String representation of this BasicDatum (lists features and labels). |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CRFDatum(java.util.List<FEAT> features,
LAB label)
features - The features of the CRFDatumlabel - The label of the CRFDatum| Method Detail |
|---|
public java.util.List<FEAT> asFeatures()
public LAB label()
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objecto - The object to test equality with
public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||