Class NewlineSentenceDetector

    • Constructor Detail

      • NewlineSentenceDetector

        public NewlineSentenceDetector()
    • Method Detail

      • sentDetect

        public String[] sentDetect​(CharSequence s)
        Description copied from interface: SentenceDetector
        Detects sentences in a character sequence.
        Specified by:
        sentDetect in interface SentenceDetector
        Parameters:
        s - The CharSequence for which sentences shall to be detected.
        Returns:
        The String[] with the individual sentences as the array elements.
      • sentPosDetect

        public Span[] sentPosDetect​(CharSequence s)
        Description copied from interface: SentenceDetector
        Detects sentences in a character sequence.
        Specified by:
        sentPosDetect in interface SentenceDetector
        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.