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

Package opennlp.tools.parser

# Class ChunkSampleStream

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

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

public class ChunkSampleStream extends FilterObjectStream<opennlp.tools.parser.Parse,opennlp.tools.chunker.ChunkSample>

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ChunkSampleStream(opennlp.tools.util.ObjectStream<opennlp.tools.parser.Parse> in)`
  Initializes a `instance`.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static opennlp.tools.parser.Parse[]`
  `getInitialChunks(opennlp.tools.parser.Parse p)`
  `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<opennlp.tools.parser.Parse> in)
    Initializes a `instance`.
    Parameters:
      `in` - A `stream` used as input.

- ## Method Details

  - ### getInitialChunks

    public static opennlp.tools.parser.Parse[] getInitialChunks(opennlp.tools.parser.Parse p)

  - ### read

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