Package opennlp.tools.formats.ontonotes

# Class OntoNotesParseSampleStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<String,opennlp.tools.parser.Parse>
opennlp.tools.formats.ontonotes.OntoNotesParseSampleStream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<opennlp.tools.parser.Parse>`

public class OntoNotesParseSampleStream extends opennlp.tools.util.FilterObjectStream<String,opennlp.tools.parser.Parse>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OntoNotesParseSampleStream(opennlp.tools.util.ObjectStream<String> samples)`
  Initializes a `OntoNotesParseSampleStream`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `opennlp.tools.parser.Parse`
  `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

  - ### OntoNotesParseSampleStream

    public OntoNotesParseSampleStream(opennlp.tools.util.ObjectStream<String> samples)
    Initializes a `OntoNotesParseSampleStream`.
    Parameters:
      `samples` - The `samples` as input. Must not be `null`.
    Throws:
      `IllegalArgumentException` - Thrown if parameters are invalid.

- ## Method Details

  - ### read

    public opennlp.tools.parser.Parse read() throws IOException
    Throws:
      `IOException`