edu.washington.cs.knowitall.extractor.conf.opennlp
Class OpenNlpDataSet<T>
java.lang.Object
edu.washington.cs.knowitall.extractor.conf.opennlp.OpenNlpDataSet<T>
- Type Parameters:
T -
public class OpenNlpDataSet<T>
- extends Object
A wrapper for the OpenNlp events. This class allows the caller to add events
to a data set by directly passing an instance of type T and a
label. The instance is then featurized using a BooleanFeatureSet
. instance.
- Author:
- schmmd
|
Method Summary |
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()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
name
public final String name
OpenNlpDataSet
public OpenNlpDataSet(String name,
BooleanFeatureSet<T> featureSet)
- Constructs a new data set
- Parameters:
name - the name of the data setfeatureSet - the feature representation of the data set
addInstance
public void addInstance(T instance,
int label)
- Adds a new instance to the data set with the given label (0 for negative,
1 for positive).
- Parameters:
instance - label -
getInstances
public com.google.common.collect.ImmutableList<opennlp.model.Event> getInstances()
Copyright © 2010-2012 University of Washington CSE. All Rights Reserved.