T - public class OpenNlpDataSet<T> extends Object
T and a
label. The instance is then featurized using a BooleanFeatureSet
. instance.| Constructor and Description |
|---|
OpenNlpDataSet(String name,
BooleanFeatureSet<T> featureSet)
Constructs a new data set
|
| Modifier and Type | Method and Description |
|---|---|
void |
addInstance(T instance,
int label)
Adds a new instance to the data set with the given label (0 for negative,
1 for positive).
|
com.google.common.collect.ImmutableList<opennlp.model.Event> |
getInstances() |
public final String name
public OpenNlpDataSet(String name, BooleanFeatureSet<T> featureSet)
name - the name of the data setfeatureSet - the feature representation of the data setpublic void addInstance(T instance, int label)
instance - label - public com.google.common.collect.ImmutableList<opennlp.model.Event> getInstances()
Copyright © 2010-2013 University of Washington CSE. All Rights Reserved.