opennlp.tools.chunker
Class ChunkerEventStream
java.lang.Object
opennlp.model.AbstractEventStream
opennlp.tools.chunker.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.
Method Summary |
boolean |
hasNext()
|
opennlp.model.Event |
next()
|
Methods inherited from class opennlp.model.AbstractEventStream |
remove |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChunkerEventStream
public ChunkerEventStream(ObjectStream<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.
ChunkerEventStream
public ChunkerEventStream(ObjectStream<ChunkSample> d)
- Creates a new event stream based on the specified data stream.
- Parameters:
d
- The data stream for this event stream.
next
public opennlp.model.Event next()
hasNext
public boolean hasNext()
Copyright © 2010. All Rights Reserved.