opennlp.tools.chunker
Class ChunkerEventStream

java.lang.Object
  extended by opennlp.tools.chunker.ChunkerEventStream
All Implemented Interfaces:
opennlp.maxent.EventStream

public class ChunkerEventStream
extends java.lang.Object
implements opennlp.maxent.EventStream

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


Constructor Summary
ChunkerEventStream(opennlp.maxent.DataStream d)
          Creates a new event stream based on the specified data stream.
ChunkerEventStream(opennlp.maxent.DataStream d, ChunkerContextGenerator cg)
          Creates a new event stream based on the specified data stream using the specified context generator.
 
Method Summary
 boolean hasNext()
           
 opennlp.maxent.Event nextEvent()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChunkerEventStream

public ChunkerEventStream(opennlp.maxent.DataStream d)
Creates a new event stream based on the specified data stream.

Parameters:
d - The data stream for this event stream.

ChunkerEventStream

public ChunkerEventStream(opennlp.maxent.DataStream d,
                          ChunkerContextGenerator 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

nextEvent

public opennlp.maxent.Event nextEvent()
Specified by:
nextEvent in interface opennlp.maxent.EventStream

hasNext

public boolean hasNext()
Specified by:
hasNext in interface opennlp.maxent.EventStream


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.