public class CRFDatum<FEAT,LAB> extends Object implements Serializable
Constructor and Description |
---|
CRFDatum(List<FEAT> features,
LAB label,
List<double[]> featureVals)
Constructs a new BasicDatum with the given features and label.
|
Modifier and Type | Method and Description |
---|---|
List<FEAT> |
asFeatures()
Returns the collection that this BasicDatum was constructed with.
|
List<double[]> |
asFeatureVals()
Returns the double array containing the feature values
|
boolean |
equals(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.
|
String |
toString()
Returns a String representation of this BasicDatum (lists features and labels).
|
public List<FEAT> asFeatures()
public List<double[]> asFeatureVals()
asFeatures()
public LAB label()
public String toString()
public boolean equals(Object o)