DefaultEndOfSentenceScanner (Apache OpenNLP :: Core :: Runtime 3.0.0-M4 API)
Description: declaration: package: opennlp.tools.sentdetect, class: DefaultEndOfSentenceScanner

Package opennlp.tools.sentdetect

# Class DefaultEndOfSentenceScanner

java.lang.Object
opennlp.tools.sentdetect.DefaultEndOfSentenceScanner

All Implemented Interfaces:
  `opennlp.tools.sentdetect.EndOfSentenceScanner`

public class DefaultEndOfSentenceScanner extends Object implements opennlp.tools.sentdetect.EndOfSentenceScanner
Default implementation of the `EndOfSentenceScanner`. It uses a character array with possible end of sentence chars to identify potential sentence endings.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `DefaultEndOfSentenceScanner(char[] eosCharacters)`
  Initializes the current instance.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Set<Character>`
  `getEOSCharacters()`
  `List<Integer>`
  `getPositions(char[] cbuf)`
  `List<Integer>`
  `getPositions(CharSequence s)`
  `List<Integer>`
  `getPositions(StringBuffer buf)`

  ### Methods inherited from class java.lang.Object

  `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### DefaultEndOfSentenceScanner

    public DefaultEndOfSentenceScanner(char[] eosCharacters)
    Initializes the current instance.
    Parameters:
      `eosCharacters` - The characters to be used to detect sentence endings.

- ## Method Details

  - ### getPositions

    public List<Integer> getPositions(CharSequence s)
    Specified by:
      `getPositions` in interface `opennlp.tools.sentdetect.EndOfSentenceScanner`

  - ### getPositions

    public List<Integer> getPositions(StringBuffer buf)
    Specified by:
      `getPositions` in interface `opennlp.tools.sentdetect.EndOfSentenceScanner`

  - ### getPositions

    public List<Integer> getPositions(char[] cbuf)
    Specified by:
      `getPositions` in interface `opennlp.tools.sentdetect.EndOfSentenceScanner`

  - ### getEOSCharacters

    public Set<Character> getEOSCharacters()
    Specified by:
      `getEOSCharacters` in interface `opennlp.tools.sentdetect.EndOfSentenceScanner`