Class NewlineSentenceDetector

java.lang.Object
opennlp.tools.sentdetect.NewlineSentenceDetector
All Implemented Interfaces:
opennlp.tools.sentdetect.SentenceDetector

public class NewlineSentenceDetector extends Object implements opennlp.tools.sentdetect.SentenceDetector
The Newline SentenceDetector assumes that sentences are line delimited and recognizes one sentence per non-empty line.
  • Constructor Details

    • NewlineSentenceDetector

      public NewlineSentenceDetector()
  • Method Details

    • sentDetect

      public String[] sentDetect(CharSequence s)
      Specified by:
      sentDetect in interface opennlp.tools.sentdetect.SentenceDetector
    • sentPosDetect

      public opennlp.tools.util.Span[] sentPosDetect(CharSequence s)
      Specified by:
      sentPosDetect in interface opennlp.tools.sentdetect.SentenceDetector