SentenceSampleStream (Apache OpenNLP :: Core :: Runtime 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.sentdetect, class: SentenceSampleStream

Package opennlp.tools.sentdetect

# Class SentenceSampleStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<String,opennlp.tools.sentdetect.SentenceSample>
opennlp.tools.sentdetect.SentenceSampleStream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<opennlp.tools.sentdetect.SentenceSample>`

public class SentenceSampleStream extends FilterObjectStream<String,opennlp.tools.sentdetect.SentenceSample>
This class is a stream filter which reads a sentence by line samples from an `ObjectStream` and converts them into `SentenceSample` objects. An empty line indicates the beginning of a new document.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `SentenceSampleStream(opennlp.tools.util.ObjectStream<String> sentences)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `opennlp.tools.sentdetect.SentenceSample`
  `read()`
  `static String`
  `replaceNewLineEscapeTags(String s)`

  ### 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

  - ### SentenceSampleStream

    public SentenceSampleStream(opennlp.tools.util.ObjectStream<String> sentences)

- ## Method Details

  - ### replaceNewLineEscapeTags

    public static String replaceNewLineEscapeTags(String s)

  - ### read

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