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.


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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface opennlp.tools.sentdetect.EndOfSentenceScanner
getEndOfSentenceCharacters
 

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 © 2013 The Apache Software Foundation. All Rights Reserved.