Package opennlp.tools.sentdetect
Interface SentenceDetector
- 
- All Known Implementing Classes:
- NewlineSentenceDetector,- SentenceDetectorME
 
 public interface SentenceDetectorThe interface for sentence detectors, which find the sentence boundaries in a text.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods 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 Detail- 
sentDetectString[] sentDetect(CharSequence s) Detects sentences in a character sequence.- Parameters:
- s- The- CharSequencefor which sentences shall to be detected.
- Returns:
- The String[] with the individual sentences as the array elements.
 
 - 
sentPosDetectSpan[] sentPosDetect(CharSequence s) Detects sentences in a character sequence.- Parameters:
- s- The- CharSequencefor which sentences shall be detected.
- Returns:
- The array of spans(offsets intos) for each detected sentence as the individuals array elements.
 
 
- 
 
-