public class Factory extends Object
Modifier and Type | Field and Description |
---|---|
static char[] |
defaultEosCharacters |
static char[] |
jpnEosCharacters |
static char[] |
ptEosCharacters |
static char[] |
thEosCharacters |
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
EndOfSentenceScanner |
createEndOfSentenceScanner(char[] customEOSCharacters) |
EndOfSentenceScanner |
createEndOfSentenceScanner(String languageCode) |
SDContextGenerator |
createSentenceContextGenerator(Set<String> abbreviations,
char[] customEOSCharacters) |
SDContextGenerator |
createSentenceContextGenerator(String languageCode) |
SDContextGenerator |
createSentenceContextGenerator(String languageCode,
Set<String> abbreviations) |
char[] |
getEOSCharacters(String languageCode) |
public static final char[] ptEosCharacters
public static final char[] defaultEosCharacters
public static final char[] thEosCharacters
public static final char[] jpnEosCharacters
public EndOfSentenceScanner createEndOfSentenceScanner(String languageCode)
public EndOfSentenceScanner createEndOfSentenceScanner(char[] customEOSCharacters)
public SDContextGenerator createSentenceContextGenerator(String languageCode, Set<String> abbreviations)
public SDContextGenerator createSentenceContextGenerator(Set<String> abbreviations, char[] customEOSCharacters)
public SDContextGenerator createSentenceContextGenerator(String languageCode)
public char[] getEOSCharacters(String languageCode)
Copyright © 2021 The Apache Software Foundation. All rights reserved.