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