|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectopennlp.tools.sentdetect.DefaultEndOfSentenceScanner
public class DefaultEndOfSentenceScanner
Default implementation of the EndOfSentenceScanner.
It uses an character array with possible end of sentence chars
to identify potential sentence endings.
| Field Summary | |
|---|---|
protected static opennlp.maxent.IntegerPool |
INT_POOL
|
| Constructor Summary | |
|---|---|
DefaultEndOfSentenceScanner(char[] eosCharacters)
Initializes the current instance. |
|
| Method Summary | |
|---|---|
char[] |
getEndOfSentenceCharacters()
Returns an array of character which can indicate the end of a sentence. |
List<Integer> |
getPositions(char[] cbuf)
The receiver scans `cbuf' for sentence ending characters and returns their offsets. |
List<Integer> |
getPositions(String s)
The receiver scans the specified string for sentence ending characters and returns their offsets. |
List<Integer> |
getPositions(StringBuffer buf)
The receiver scans `buf' for sentence ending characters and returns their offsets. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final opennlp.maxent.IntegerPool INT_POOL
| Constructor Detail |
|---|
public DefaultEndOfSentenceScanner(char[] eosCharacters)
eosCharacters - | Method Detail |
|---|
public List<Integer> getPositions(String s)
EndOfSentenceScanner
getPositions in interface EndOfSentenceScanners - a String value
List of Integer objects.public List<Integer> getPositions(StringBuffer buf)
EndOfSentenceScanner
getPositions in interface EndOfSentenceScannerbuf - a StringBuffer value
List of Integer objects.public List<Integer> getPositions(char[] cbuf)
EndOfSentenceScanner
getPositions in interface EndOfSentenceScannercbuf - a char[] value
List of Integer objects.public char[] getEndOfSentenceCharacters()
EndOfSentenceScanner
getEndOfSentenceCharacters in interface EndOfSentenceScanner
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||