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 SummaryConstructors
- 
Method SummaryMethods inherited from class opennlp.tools.util.FilterObjectStreamclose, reset
- 
Constructor Details- 
ConlluTokenSampleStreamInitializes aConlluTokenSampleStream.- Parameters:
- samples- The- samplesused as input.
 
 
- 
- 
Method Details- 
readDescription 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.
 
 
-