public class Datum extends Object
| Constructor and Description |
|---|
Datum()
create a new Datum.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addF(String feature)
add feature
feature to the Datum. |
void |
addFV(String feature,
String value)
add feature
feature=value to the Datum. |
void |
setOutcome(String outcome)
set the
outcome for this set of features. |
String[] |
toArray()
return the Datum as an array of features (with the outcome not included).
|
String |
toString()
return the Datum as a sequence of space-separated features, with the
outcome at the end.
|
public void addF(String feature)
feature to the Datum.public void setOutcome(String outcome)
outcome for this set of features.public String toString()
public String[] toArray()
Copyright © 2016 New York University. All rights reserved.