POSToSentenceSampleStream (Apache OpenNLP Tools 2.5.9 API)
Description: declaration: package: opennlp.tools.formats.convert, class: POSToSentenceSampleStream

# Class POSToSentenceSampleStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<POSSample, SentenceSample>
opennlp.tools.formats.convert.AbstractToSentenceSampleStream<POSSample>
opennlp.tools.formats.convert.POSToSentenceSampleStream

All Implemented Interfaces:
  `AutoCloseable, ObjectStream<SentenceSample>`

@Internal public class POSToSentenceSampleStream extends AbstractToSentenceSampleStream<POSSample>
Note: Do not use this class, internal use only!

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `POSToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples, int chunkSize)`
  Initializes a `POSToSentenceSampleStream`.

- ## Method Summary

  ### Methods inherited from class AbstractToSentenceSampleStream

  `read`

  ### Methods inherited from class FilterObjectStream

  `close, reset`

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### POSToSentenceSampleStream

    public POSToSentenceSampleStream(Detokenizer detokenizer, ObjectStream<POSSample> samples, int chunkSize)
    Initializes a `POSToSentenceSampleStream`.
    Parameters:
      `detokenizer` - The `Detokenizer` to use. Must not be `null`.
      `samples` - The `samples` as input. Must not be `null`.
      `chunkSize` - The size of chunks. Must be equal to or greater than `0`.
    Throws:
      `IllegalArgumentException` - Thrown if parameters are invalid.