Package opennlp.tools.sentdetect
Schnittstelle EndOfSentenceScanner
- Alle bekannten Implementierungsklassen:
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.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetPositions(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.
-
Methodendetails
-
getEOSCharacters
- Gibt zurück:
- a set of
characterswhich can indicate the end of a sentence.
-
getPositions
The receiver scans the specified string for sentence ending characters and returns their offsets.- Parameter:
s- ACharSequenceto be scanned.- Gibt zurück:
- A
Listof Integer objects.
-
getPositions
The receiver scansbuffor sentence ending characters and returns their offsets.- Parameter:
buf- AStringBufferto be scanned.- Gibt zurück:
- A
Listof Integer objects.
-
getPositions
The receiver scanscbuffor sentence ending characters and returns their offsets.- Parameter:
cbuf- Achar[]to be scanned.- Gibt zurück:
- A
Listof Integer objects.
-