Schnittstelle SentenceDetector

Alle bekannten Implementierungsklassen:
NewlineSentenceDetector, SentenceDetectorME, ThreadSafeSentenceDetectorME

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

    • sentDetect

      String[] sentDetect(CharSequence s)
      Detects sentences in a character sequence.
      Parameter:
      s - The CharSequence for which sentences shall to be detected.
      Gibt zurück:
      The String[] with the individual sentences as the array elements.
    • sentPosDetect

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