nlpOpenNLP


Syntax

  • opennlp SentenceDetector ./en-sent.bin < ./input.txt > output.txt

  • Initialize SentenceDetectorME like this: SentenceDetectorME sentenceDetector = new SentenceDetectorME(model);

  • Use ‘sentDetect’ method to get sentences like this: String sentences[] = sentenceDetector.sentDetect("string of information");

Remarks

download models(like en-sent.bin) from the following link