|
|||||||||
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,
java.util.List<double[]> featureVals)
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. |
java.util.List<double[]> |
asFeatureVals()
Returns the double array containing the feature values |
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, java.util.List<double[]> featureVals)
features
- The features of the CRFDatumlabel
- The label of the CRFDatumMethod Detail |
---|
public java.util.List<FEAT> asFeatures()
public java.util.List<double[]> asFeatureVals()
asFeatures()
public LAB label()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- 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 |