Package opennlp.tools.sentdetect
Class NewlineSentenceDetector
java.lang.Object
opennlp.tools.sentdetect.NewlineSentenceDetector
- All Implemented Interfaces:
- SentenceDetector
The Newline 
SentenceDetector assumes that sentences are line delimited and
 recognizes one sentence per non-empty line.- 
Constructor Details- 
NewlineSentenceDetectorpublic NewlineSentenceDetector()
 
- 
- 
Method Details- 
sentDetectDescription copied from interface:SentenceDetectorDetects sentences in a character sequence.- Specified by:
- sentDetectin interface- SentenceDetector
- Parameters:
- s- The- CharSequencefor which sentences shall to be detected.
- Returns:
- The String[] with the individual sentences as the array elements.
 
- 
sentPosDetectDescription copied from interface:SentenceDetectorDetects sentences in a character sequence.- Specified by:
- sentPosDetectin interface- SentenceDetector
- 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.
 
 
-