|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--opennlp.grok.preprocess.sentdetect.DefaultEndOfSentenceScanner
The default end of sentence scanner implements all of the EndOfSentenceScanner methods in terms of the getPositions(char[]) method. It scans for . ? ! ) and ". Created: Sat Oct 27 11:46:46 2001
| Field Summary | |
protected static opennlp.maxent.IntegerPool |
INT_POOL
|
| Constructor Summary | |
DefaultEndOfSentenceScanner()
Creates a new DefaultEndOfSentenceScanner instance. |
|
| Method Summary | |
java.util.List |
getPositions(char[] cbuf)
The receiver scans `cbuf' for sentence ending characters and returns their offsets. |
java.util.List |
getPositions(java.lang.String s)
The receiver scans `s' for sentence ending characters and returns their offsets. |
java.util.List |
getPositions(java.lang.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()
DefaultEndOfSentenceScanner instance.
| Method Detail |
public java.util.List getPositions(java.lang.String s)
EndOfSentenceScanner
getPositions in interface EndOfSentenceScanners - a String value
List of Integer objects.public java.util.List getPositions(java.lang.StringBuffer buf)
EndOfSentenceScanner
getPositions in interface EndOfSentenceScannerbuf - a StringBuffer value
List of Integer objects.public java.util.List getPositions(char[] cbuf)
EndOfSentenceScanner
getPositions in interface EndOfSentenceScannercbuf - a char[] value
List of Integer objects.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||