org.cogroo.tools.featurizer
Class FeaturizerEventStream

java.lang.Object
  extended by opennlp.model.AbstractEventStream
      extended by org.cogroo.tools.featurizer.FeaturizerEventStream
All Implemented Interfaces:
opennlp.model.EventStream

public class FeaturizerEventStream
extends opennlp.model.AbstractEventStream

Class for creating an event stream out of data files for training a chunker.


Constructor Summary
FeaturizerEventStream(opennlp.tools.util.ObjectStream<FeatureSample> d, FeaturizerContextGenerator cg)
          Creates a new event stream based on the specified data stream using the specified context generator.
 
Method Summary
 boolean hasNext()
           
 opennlp.model.Event next()
           
 
Methods inherited from class opennlp.model.AbstractEventStream
remove
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeaturizerEventStream

public FeaturizerEventStream(opennlp.tools.util.ObjectStream<FeatureSample> d,
                             FeaturizerContextGenerator cg)
Creates a new event stream based on the specified data stream using the specified context generator.

Parameters:
d - The data stream for this event stream.
cg - The context generator which should be used in the creation of events for this event stream.
Method Detail

next

public opennlp.model.Event next()

hasNext

public boolean hasNext()


Copyright © 2012-2013 CoGrOO. All Rights Reserved.