org.cogroo.tools.chunker2
Class ChunkerEventStream
java.lang.Object
opennlp.model.AbstractEventStream
org.cogroo.tools.chunker2.ChunkerEventStream
- All Implemented Interfaces:
- opennlp.model.EventStream
public class ChunkerEventStream
- extends opennlp.model.AbstractEventStream
Class for creating an event stream out of data files for training a chunker.
Constructor Summary |
ChunkerEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.chunker.ChunkSample> d,
ChunkerContextGenerator 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 |
ChunkerEventStream
public ChunkerEventStream(opennlp.tools.util.ObjectStream<opennlp.tools.chunker.ChunkSample> 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.
next
public opennlp.model.Event next()
hasNext
public boolean hasNext()
Copyright © 2012-2013 CoGrOO. All Rights Reserved.