Class ConlluSentenceSampleStream
java.lang.Object
opennlp.tools.util.FilterObjectStream<ConlluSentence, opennlp.tools.sentdetect.SentenceSample>
opennlp.tools.formats.conllu.ConlluSentenceSampleStream
- All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<opennlp.tools.sentdetect.SentenceSample>
public class ConlluSentenceSampleStream
extends opennlp.tools.util.FilterObjectStream<ConlluSentence, opennlp.tools.sentdetect.SentenceSample>
-
Constructor Summary
ConstructorsConstructorDescriptionConlluSentenceSampleStream(opennlp.tools.util.ObjectStream<ConlluSentence> samples, int sentencesPerSample) Initializes aConlluSentenceSampleStream. -
Method Summary
Methods inherited from class opennlp.tools.util.FilterObjectStream
close, reset
-
Constructor Details
-
ConlluSentenceSampleStream
public ConlluSentenceSampleStream(opennlp.tools.util.ObjectStream<ConlluSentence> samples, int sentencesPerSample) Initializes aConlluSentenceSampleStream.- Parameters:
samples- Thesamplesused as input.sentencesPerSample- The number of sentences per sample. Must not be negative.
-
-
Method Details
-
read
- Throws:
IOException
-