opennlp.tools.sentdetect
Class AbstractEndOfSentenceScanner

java.lang.Object
  extended by opennlp.tools.sentdetect.AbstractEndOfSentenceScanner
All Implemented Interfaces:
EndOfSentenceScanner

Deprecated. use DefaultEndOfSentenceScanner instead

@Deprecated
public abstract class AbstractEndOfSentenceScanner
extends Object
implements EndOfSentenceScanner

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


Field Summary
protected static opennlp.maxent.IntegerPool INT_POOL
          Deprecated.  
 
Constructor Summary
AbstractEndOfSentenceScanner()
          Deprecated.  
 
Method Summary
 List<Integer> getPositions(char[] cbuf)
          Deprecated. The receiver scans `cbuf' for sentence ending characters and returns their offsets.
 List<Integer> getPositions(String s)
          Deprecated. The receiver scans the specified string for sentence ending characters and returns their offsets.
 List<Integer> getPositions(StringBuffer buf)
          Deprecated. 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
Deprecated. 
Constructor Detail

AbstractEndOfSentenceScanner

public AbstractEndOfSentenceScanner()
Deprecated. 
Method Detail

getPositions

public List<Integer> getPositions(String s)
Deprecated. 
Description copied from interface: EndOfSentenceScanner
The receiver scans the specified string 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 List<Integer> getPositions(StringBuffer buf)
Deprecated. 
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 List<Integer> getPositions(char[] cbuf)
Deprecated. 
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 © 2010. All Rights Reserved.