Class WhitespaceTokenStream

java.lang.Object
opennlp.tools.util.FilterObjectStream<opennlp.tools.tokenize.TokenSample, String>
opennlp.tools.tokenize.WhitespaceTokenStream
All Implemented Interfaces:
AutoCloseable, opennlp.tools.util.ObjectStream<String>

public class WhitespaceTokenStream extends FilterObjectStream<opennlp.tools.tokenize.TokenSample, String>
This stream formats ObjectStream of samples into whitespace separated token strings.
  • Constructor Details

    • WhitespaceTokenStream

      public WhitespaceTokenStream(opennlp.tools.util.ObjectStream<opennlp.tools.tokenize.TokenSample> tokens)
      Initializes a WhitespaceTokenStream.
      Parameters:
      tokens - The stream of tokens to be separated.
  • Method Details