public interface EndOfSentenceScanner
Implementations of this interface can use regular expressions, hand-coded DFAs, and other scanning techniques to locate end of sentence offsets.
| Modifier and Type | Method and Description |
|---|---|
char[] |
getEndOfSentenceCharacters()
Returns an array of character which can indicate the end of a sentence.
|
java.util.List<java.lang.Integer> |
getPositions(char[] cbuf)
The receiver scans `cbuf' for sentence ending characters and
returns their offsets.
|
java.util.List<java.lang.Integer> |
getPositions(java.lang.String s)
The receiver scans the specified string for sentence ending characters and
returns their offsets.
|
java.util.List<java.lang.Integer> |
getPositions(java.lang.StringBuffer buf)
The receiver scans `buf' for sentence ending characters and
returns their offsets.
|
char[] getEndOfSentenceCharacters()
java.util.List<java.lang.Integer> getPositions(java.lang.String s)
s - a String valueList of Integer objects.java.util.List<java.lang.Integer> getPositions(java.lang.StringBuffer buf)
buf - a StringBuffer valueList of Integer objects.java.util.List<java.lang.Integer> getPositions(char[] cbuf)
cbuf - a char[] valueList of Integer objects.Copyright © 2010 - 2020 Adobe. All Rights Reserved