Package opennlp.tools.formats.ontonotes

# Class OntoNotesNameSampleStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<String,opennlp.tools.namefind.NameSample>
opennlp.tools.formats.ontonotes.OntoNotesNameSampleStream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<opennlp.tools.namefind.NameSample>`

public class OntoNotesNameSampleStream extends opennlp.tools.util.FilterObjectStream<String,opennlp.tools.namefind.NameSample>
Name Sample Stream parser for the OntoNotes 4.0 named entity files.

- ## Constructor Summary

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

- ## Method Summary

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

  - ### OntoNotesNameSampleStream

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

- ## Method Details

  - ### read

    public opennlp.tools.namefind.NameSample read() throws IOException
    Throws:
      `IOException`