Class AbstractEventStream<T>
java.lang.Object
opennlp.tools.util.AbstractEventStream<T>
- Type Parameters:
T- The generic type representing samples.
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event>
- Direct Known Subclasses:
AbstractParserEventStream, ChunkerEventStream, DocumentCategorizerEventStream, LanguageDetectorEventStream, LemmaSampleEventStream, NameFinderEventStream, POSSampleEventStream, SDEventStream, SentimentEventStream, TokSpanEventStream
public abstract class AbstractEventStream<T>
extends Object
implements opennlp.tools.util.ObjectStream<opennlp.tools.ml.model.Event>
A base
ObjectStream implementation for events.-
Constructor Summary
ConstructorsConstructorDescriptionAbstractEventStream(opennlp.tools.util.ObjectStream<T> samples) Initializes anAbstractEventStreamwith a sampleIterator. -
Method Summary
-
Constructor Details
-
AbstractEventStream
Initializes anAbstractEventStreamwith a sampleIterator.
-
-
Method Details
-
read
- Specified by:
readin interfaceopennlp.tools.util.ObjectStream<T>- Throws:
IOException
-
reset
- Specified by:
resetin interfaceopennlp.tools.util.ObjectStream<T>- Throws:
IOExceptionUnsupportedOperationException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceopennlp.tools.util.ObjectStream<T>- Throws:
IOException
-