opennlp.grok.preprocess.sentdetect
Interface EndOfSentenceScanner

All Known Implementing Classes:
DefaultEndOfSentenceScanner

public interface EndOfSentenceScanner

Scans Strings, StringBuffers, and char[] arrays for the offsets of sentence ending characters.

Implementations of this interface can use regular expressions, hand-coded DFAs, and other scanning techniques to locate end of sentence offsets.

Created: Sat Oct 27 11:42:07 2001

Version:
$Id: EndOfSentenceScanner.java,v 1.2 2001/11/26 17:18:23 jasonbaldridge Exp $
Author:
Eric D. Friedman

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.
 

Method Detail

getPositions

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

Parameters:
s - a String value
Returns:
a List of Integer objects.

getPositions

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

Parameters:
buf - a StringBuffer value
Returns:
a List of Integer objects.

getPositions

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

Parameters:
cbuf - a char[] value
Returns:
a List of Integer objects.


Copyright © 2003 Jason Baldridge and Gann Bierner. All Rights Reserved.