opennlp.tools.sentdetect
Class AbstractEndOfSentenceScanner

java.lang.Object
  extended by opennlp.tools.sentdetect.AbstractEndOfSentenceScanner
All Implemented Interfaces:
EndOfSentenceScanner
Direct Known Subclasses:
EndOfSentenceScanner, EndOfSentenceScanner

public abstract class AbstractEndOfSentenceScanner
extends java.lang.Object
implements EndOfSentenceScanner

Abstract class for common methods related to identifying potential ends of sentences.


Field Summary
protected static opennlp.maxent.IntegerPool INT_POOL
           
 
Constructor Summary
AbstractEndOfSentenceScanner()
           
 
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
 
Methods inherited from interface opennlp.tools.sentdetect.EndOfSentenceScanner
getEndOfSentenceCharacters
 

Field Detail

INT_POOL

protected static final opennlp.maxent.IntegerPool INT_POOL
Constructor Detail

AbstractEndOfSentenceScanner

public AbstractEndOfSentenceScanner()
Method Detail

getPositions

public java.util.List getPositions(java.lang.String s)
Description copied from interface: EndOfSentenceScanner
The receiver scans `s' for sentence ending characters and returns their offsets.

Specified by:
getPositions in interface EndOfSentenceScanner
Parameters:
s - a String value
Returns:
a List of Integer objects.

getPositions

public java.util.List getPositions(java.lang.StringBuffer buf)
Description copied from interface: EndOfSentenceScanner
The receiver scans `buf' for sentence ending characters and returns their offsets.

Specified by:
getPositions in interface EndOfSentenceScanner
Parameters:
buf - a StringBuffer value
Returns:
a List of Integer objects.

getPositions

public java.util.List getPositions(char[] cbuf)
Description copied from interface: EndOfSentenceScanner
The receiver scans `cbuf' for sentence ending characters and returns their offsets.

Specified by:
getPositions in interface EndOfSentenceScanner
Parameters:
cbuf - a char[] value
Returns:
a List of Integer objects.


Copyright 2008 Jason Baldridge, Gann Bierner, and Thomas Morton. All Rights Reserved.