Package opennlp.tools.formats.conllu
Class ConlluPOSSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<ConlluSentence,POSSample>
 
opennlp.tools.formats.conllu.ConlluPOSSampleStream
- All Implemented Interfaces:
- AutoCloseable,- ObjectStream<POSSample>
- 
Constructor SummaryConstructorsConstructorDescriptionConlluPOSSampleStream(ObjectStream<ConlluSentence> samples, ConlluTagset tagset) Initializes aConlluPOSSampleStream.
- 
Method SummaryMethods inherited from class opennlp.tools.util.FilterObjectStreamclose, reset
- 
Constructor Details- 
ConlluPOSSampleStreamInitializes aConlluPOSSampleStream.- Parameters:
- samples- The- samplesused as input.
- tagset- The- ConlluTagsetto use. Must not be- null.
 
 
- 
- 
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.
 
 
-