NewlineSentenceDetector (Apache OpenNLP :: Core :: Runtime 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.sentdetect, class: NewlineSentenceDetector

Package opennlp.tools.sentdetect

# 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 Summary

  Constructors
  Constructor
  Description
  `NewlineSentenceDetector()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `sentDetect(CharSequence s)`
  `opennlp.tools.util.Span[]`
  `sentPosDetect(CharSequence s)`

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

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

- ## 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`