Package opennlp.tools.formats.conllu

# 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

  Constructors
  Constructor
  Description
  `ConlluSentenceSampleStream(opennlp.tools.util.ObjectStream<ConlluSentence> samples, int sentencesPerSample)`
  Initializes a `ConlluSentenceSampleStream`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `opennlp.tools.sentdetect.SentenceSample`
  `read()`

  ### Methods inherited from class opennlp.tools.util.FilterObjectStream

  `close, reset`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ConlluSentenceSampleStream

    public ConlluSentenceSampleStream(opennlp.tools.util.ObjectStream<ConlluSentence> samples, int sentencesPerSample)
    Initializes a `ConlluSentenceSampleStream`.
    Parameters:
      `samples` - The `samples` used as input.
      `sentencesPerSample` - The number of sentences per sample. Must not be negative.

- ## Method Details

  - ### read

    public opennlp.tools.sentdetect.SentenceSample read() throws IOException
    Throws:
      `IOException`