Package opennlp.tools.sentdetect.lang
Class Factory
- java.lang.Object
-
- opennlp.tools.sentdetect.lang.Factory
-
public class Factory extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static char[]
defaultEosCharacters
static char[]
jpnEosCharacters
static char[]
ptEosCharacters
static char[]
thEosCharacters
-
Constructor Summary
Constructors Constructor Description Factory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EndOfSentenceScanner
createEndOfSentenceScanner(char[] customEOSCharacters)
EndOfSentenceScanner
createEndOfSentenceScanner(String languageCode)
SDContextGenerator
createSentenceContextGenerator(String languageCode)
SDContextGenerator
createSentenceContextGenerator(String languageCode, Set<String> abbreviations)
SDContextGenerator
createSentenceContextGenerator(Set<String> abbreviations, char[] customEOSCharacters)
char[]
getEOSCharacters(String languageCode)
-
-
-
Method Detail
-
createEndOfSentenceScanner
public EndOfSentenceScanner createEndOfSentenceScanner(String languageCode)
-
createEndOfSentenceScanner
public EndOfSentenceScanner createEndOfSentenceScanner(char[] customEOSCharacters)
-
createSentenceContextGenerator
public SDContextGenerator createSentenceContextGenerator(String languageCode, Set<String> abbreviations)
-
createSentenceContextGenerator
public SDContextGenerator createSentenceContextGenerator(Set<String> abbreviations, char[] customEOSCharacters)
-
createSentenceContextGenerator
public SDContextGenerator createSentenceContextGenerator(String languageCode)
-
getEOSCharacters
public char[] getEOSCharacters(String languageCode)
-
-