Class SentenceDetectorFactory

    • Constructor Detail

      • 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.