Package opennlp.tools.chunker

# Class ChunkSampleStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<String,opennlp.tools.chunker.ChunkSample>
opennlp.tools.chunker.ChunkSampleStream

All Implemented Interfaces:
  `AutoCloseable`, `opennlp.tools.util.ObjectStream<opennlp.tools.chunker.ChunkSample>`

public class ChunkSampleStream extends FilterObjectStream<String,opennlp.tools.chunker.ChunkSample>
Parses the conll 2000 shared task shallow parser training data.

Data format is specified on the conll page:
https://www.cnts.ua.ac.be/conll2000/chunking/

- ## Constructor Summary

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

- ## Method Summary

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

  - ### ChunkSampleStream

    public ChunkSampleStream(opennlp.tools.util.ObjectStream<String> samples)
    Initializes a `instance`.
    Parameters:
      `samples` - A plain text `line stream`.

- ## Method Details

  - ### read

    public opennlp.tools.chunker.ChunkSample read() throws IOException
    Throws:
      `IOException`