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

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

# Class NLPSentenceDetectorOp

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

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

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `NLPSentenceDetectorOp()`
  `NLPSentenceDetectorOp(opennlp.tools.sentdetect.SentenceModel model)`

- ## Method Summary

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

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

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

- ## Constructor Details

  - ### NLPSentenceDetectorOp

    public NLPSentenceDetectorOp(opennlp.tools.sentdetect.SentenceModel model) throws IOException
    Throws:
      `IOException`

  - ### NLPSentenceDetectorOp

    public NLPSentenceDetectorOp()

- ## Method Details

  - ### splitSentences

    public opennlp.tools.util.Span[] splitSentences(String line)