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