Package opennlp.tools.formats.conllu
Class ConlluTokenSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<ConlluSentence,TokenSample>
opennlp.tools.formats.conllu.ConlluTokenSampleStream
- All Implemented Interfaces:
AutoCloseable,ObjectStream<TokenSample>
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class opennlp.tools.util.FilterObjectStream
close, reset
-
Constructor Details
-
ConlluTokenSampleStream
Initializes aConlluTokenSampleStream.- Parameters:
samples- Thesamplesused as input.
-
-
Method Details
-
read
Description copied from interface:ObjectStreamReturns the nextObjectStreamobject. Calling this method repeatedly until it returnsnullwill return each object from the underlying source exactly once.- Returns:
- The next object or
nullto signal that the stream is exhausted. - Throws:
IOException- Thrown if there is an error during reading.
-