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)
-
-
-
Constructor Detail
-
NLPSentenceDetectorOp
public NLPSentenceDetectorOp(opennlp.tools.sentdetect.SentenceModel model) throws IOException
- Throws:
IOException
-
NLPSentenceDetectorOp
public NLPSentenceDetectorOp()
-
-
Method Detail
-
splitSentences
public opennlp.tools.util.Span[] splitSentences(String line)
-
-