SentenceDetector (Apache OpenNLP :: API 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.sentdetect, interface: SentenceDetector

Package opennlp.tools.sentdetect

# Interface SentenceDetector

public interface SentenceDetector
The interface for sentence detectors, which find the sentence boundaries in a text.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String[]`
  `sentDetect(CharSequence s)`
  Detects sentences in a character sequence.
  `Span[]`
  `sentPosDetect(CharSequence s)`
  Detects sentences in a character sequence.

- ## Method Details

  - ### sentDetect

    String[] sentDetect(CharSequence s)
    Detects sentences in a character sequence.
    Parameters:
      `s` - The `CharSequence` for which sentences shall to be detected.
    Returns:
      The String[] with the individual sentences as the array elements.

  - ### sentPosDetect

    Span[] sentPosDetect(CharSequence s)
    Detects sentences in a character sequence.
    Parameters:
      `s` - The `CharSequence` for which sentences shall be detected.
    Returns:
      The array of `spans` (offsets into `s`) for each detected sentence as the individuals array elements.