|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.washington.cs.knowitall.extractor.conf.WekaDataSet<T>
T
- public class WekaDataSet<T>
A wrapper for the Weka Instances
class. This class allows
the caller to add instances to a data set by directly passing an object of type
T
and a label. The object is then featurized using a BooleanFeatureSet
and added to a Weka Instances
object.
Constructor Summary | |
---|---|
WekaDataSet(java.lang.String name,
BooleanFeatureSet<T> featureSet)
Constructs a new data set |
Method Summary | |
---|---|
void |
addInstance(T object)
Adds a new unlabeled instance to the data set with the given label (0 for negative, 1 for positive). |
void |
addInstance(T object,
int label)
Adds a new instance to the data set with the given label (0 for negative, 1 for positive). |
weka.core.Instances |
getWekaInstances()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public WekaDataSet(java.lang.String name, BooleanFeatureSet<T> featureSet)
name
- the name of the data setfeatureSet
- the feature representation of the data setMethod Detail |
---|
public void addInstance(T object, int label)
object
- label
- public void addInstance(T object)
object
- public weka.core.Instances getWekaInstances()
Instances
object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |