return f.createEndOfSentenceScanner(this.languageCode);
}
}
public SDContextGenerator getSDContextGenerator() {
Factory f = new Factory();
char[] eosChars = getEOSCharacters();
Set<String> abbs = null;
Dictionary abbDict = getAbbreviationDictionary();
if (abbDict != null) {
abbs = abbDict.asStringSet();
} else {
abbs = Collections.emptySet();
}
if (eosChars != null && eosChars.length > 0) {
return f.createSentenceContextGenerator(abbs, eosChars);
} else {
return f.createSentenceContextGenerator(this.languageCode, abbs);
}
}