edu.washington.cs.knowitall.extractor.conf.opennlp
Class OpenNlpDataSet<T>

java.lang.Object
  extended by 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

Field Summary
 String name
           
 
Constructor Summary
OpenNlpDataSet(String name, BooleanFeatureSet<T> featureSet)
          Constructs a new data set
 
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
 

Field Detail

name

public final String name
Constructor Detail

OpenNlpDataSet

public OpenNlpDataSet(String name,
                      BooleanFeatureSet<T> featureSet)
Constructs a new data set

Parameters:
name - the name of the data set
featureSet - the feature representation of the data set
Method Detail

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.