Class OpenNLPTokenizer

  • All Implemented Interfaces:
    Closeable, AutoCloseable

    public final class OpenNLPTokenizer
    extends SegmentingTokenizerBase
    Run OpenNLP SentenceDetector and Tokenizer. The last token in each sentence is marked by setting the EOS_FLAG_BIT in the FlagsAttribute; following filters can use this information to apply operations to tokens one sentence at a time.