NLPTokenizerOp (Lucene 10.5.0 opennlp API)
Description: declaration: package: org.apache.lucene.analysis.opennlp.tools, class: NLPTokenizerOp

Package org.apache.lucene.analysis.opennlp.tools

# Class NLPTokenizerOp

java.lang.Object
org.apache.lucene.analysis.opennlp.tools.NLPTokenizerOp

public class NLPTokenizerOp extends Object
Supply OpenNLP Sentence Tokenizer tool Requires binary models from OpenNLP project on SourceForge.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NLPTokenizerOp()`
  `NLPTokenizerOp(opennlp.tools.tokenize.TokenizerModel model)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `opennlp.tools.util.Span[]`
  `getTerms(String sentence)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### NLPTokenizerOp

    public NLPTokenizerOp(opennlp.tools.tokenize.TokenizerModel model)

  - ### NLPTokenizerOp

    public NLPTokenizerOp()

- ## Method Details

  - ### getTerms

    public opennlp.tools.util.Span[] getTerms(String sentence)