Class SentenceDetectorFactory

java.lang.Object
opennlp.tools.util.BaseToolFactory
opennlp.tools.sentdetect.SentenceDetectorFactory

public class SentenceDetectorFactory extends BaseToolFactory
The factory that provides SentenceDetector default implementations and resources
  • Constructor Details

    • SentenceDetectorFactory

      public SentenceDetectorFactory()
      Creates a SentenceDetectorFactory that provides the default implementation of the resources.
    • SentenceDetectorFactory

      public SentenceDetectorFactory(String languageCode, boolean useTokenEnd, Dictionary abbreviationDictionary, char[] eosCharacters)
      Creates a SentenceDetectorFactory. Use this constructor to programmatically create a factory.
      Parameters:
      languageCode - The ISO language code to be used for this factory.
      useTokenEnd - true if TOKEN_END_PROPERTY shall be used, false otherwise.
      abbreviationDictionary - The Dictionary which holds abbreviations.
      eosCharacters - The characters to be used to detect sentence endings.
  • Method Details