|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectopennlp.model.AbstractEventStream
opennlp.tools.util.AbstractEventStream<T>
public abstract class AbstractEventStream<T>
This is a base class for EventStream classes.
It takes an Iterator of sample objects as input and
outputs the events creates by a subclass.
| Constructor Summary | |
|---|---|
AbstractEventStream(ObjectStream<T> samples)
Initializes the current instance with a sample Iterator. |
|
| Method Summary | |
|---|---|
boolean |
hasNext()
Checks if there are more training events available. |
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 |
|---|
public AbstractEventStream(ObjectStream<T> samples)
Iterator.
samples - the sample Iterator.| Method Detail |
|---|
public final boolean hasNext()
throws java.io.IOException
java.io.IOExceptionpublic final Event next()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||