Package opennlp.tools.sentdetect
Interface EndOfSentenceScanner
- All Known Implementing Classes:
- DefaultEndOfSentenceScanner
public interface EndOfSentenceScanner
Scans 
CharSequence, StringBuffer, and char[] for the offsets of
 sentence ending characters.
 Implementations of this interface can use regular expressions, hand-coded DFAs, and other scanning techniques to locate end of sentence offsets.
- 
Method SummaryModifier and TypeMethodDescriptiongetPositions(char[] cbuf) The receiver scanscbuffor sentence ending characters and returns their offsets.The receiver scans the specified string for sentence ending characters and returns their offsets.getPositions(StringBuffer buf) The receiver scansbuffor sentence ending characters and returns their offsets.
- 
Method Details- 
getEOSCharacters- Returns:
- a set of characterswhich can indicate the end of a sentence.
 
- 
getPositionsThe receiver scans the specified string for sentence ending characters and returns their offsets.- Parameters:
- s- A- CharSequenceto be scanned.
- Returns:
- A Listof Integer objects.
 
- 
getPositionsThe receiver scansbuffor sentence ending characters and returns their offsets.- Parameters:
- buf- A- StringBufferto be scanned.
- Returns:
- A Listof Integer objects.
 
- 
getPositionsThe receiver scanscbuffor sentence ending characters and returns their offsets.- Parameters:
- cbuf- A- char[]to be scanned.
- Returns:
- A Listof Integer objects.
 
 
-