Modifier and Type | Method and Description |
---|---|
LanguageModel |
Language.getLanguageModel(File indexDir) |
protected LanguageModel |
Language.initLanguageModel(File indexDir,
LanguageModel languageModel) |
Modifier and Type | Method and Description |
---|---|
List<Rule> |
Language.getRelevantLanguageModelCapableRules(ResourceBundle messages,
LanguageModel languageModel,
GlobalConfig globalConfig,
UserConfig userConfig,
Language motherTongue,
List<Language> altLanguages)
Get a list of rules that can optionally use a
LanguageModel . |
List<Rule> |
Language.getRelevantLanguageModelRules(ResourceBundle messages,
LanguageModel languageModel,
UserConfig userConfig)
Get a list of rules that require a
LanguageModel . |
protected LanguageModel |
Language.initLanguageModel(File indexDir,
LanguageModel languageModel) |
Modifier and Type | Method and Description |
---|---|
LanguageModel |
Irish.getLanguageModel(File indexDir) |
LanguageModel |
SimpleGerman.getLanguageModel(File indexDir) |
LanguageModel |
Spanish.getLanguageModel(File indexDir) |
LanguageModel |
Chinese.getLanguageModel(File indexDir) |
LanguageModel |
Belarusian.getLanguageModel(File indexDir)
Deprecated.
|
LanguageModel |
Russian.getLanguageModel(File indexDir) |
LanguageModel |
Portuguese.getLanguageModel(File indexDir) |
LanguageModel |
Dutch.getLanguageModel(File indexDir) |
LanguageModel |
Italian.getLanguageModel(File indexDir) |
LanguageModel |
German.getLanguageModel(File indexDir) |
LanguageModel |
French.getLanguageModel(File indexDir) |
LanguageModel |
Arabic.getLanguageModel(File indexDir) |
LanguageModel |
English.getLanguageModel(File indexDir) |
Modifier and Type | Class and Description |
---|---|
class |
BaseLanguageModel
The algorithm of a language model, independent of the way data
is stored (see sub classes for that).
|
class |
LuceneLanguageModel
Like
LuceneSingleIndexLanguageModel , but can merge the results of
lookups in several independent indexes to one result. |
class |
LuceneSingleIndexLanguageModel
Information about ngram occurrences, taken from Lucene indexes (one index per ngram level).
|
class |
MultiLanguageModel
Combines the results of several
LanguageModel s. |
Constructor and Description |
---|
MultiLanguageModel(List<LanguageModel> lms) |
Constructor and Description |
---|
ArabicConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Constructor and Description |
---|
AustrianGermanSpellerRule(ResourceBundle messages,
German language,
UserConfig userConfig,
LanguageModel lm) |
GermanConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
GermanConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams) |
GermanSpellerRule(ResourceBundle messages,
German language,
UserConfig userConfig,
String languageVariantPlainTextDict,
List<Language> altLanguages,
LanguageModel languageModel) |
ProhibitedCompoundRule(ResourceBundle messages,
LanguageModel lm,
UserConfig userConfig,
Language language) |
SwissGermanSpellerRule(ResourceBundle messages,
German language,
UserConfig userConfig,
LanguageModel lm) |
UpperCaseNgramRule(ResourceBundle messages,
LanguageModel lm,
Language lang) |
Constructor and Description |
---|
SpanishConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Constructor and Description |
---|
FrenchConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Constructor and Description |
---|
ItalianConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Modifier and Type | Method and Description |
---|---|
static double |
LanguageModelUtils.get3gramProbabilityFor(Language lang,
LanguageModel lm,
int position,
AnalyzedSentence sentence,
String candidate) |
static double |
LanguageModelUtils.get4gramProbabilityFor(Language lang,
LanguageModel lm,
int position,
AnalyzedSentence sentence,
String candidate) |
Constructor and Description |
---|
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams) |
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams,
List<String> exceptions) |
ConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams,
List<String> exceptions,
List<List<PatternToken>> antiPatterns) |
NgramProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Constructor and Description |
---|
DutchConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
DutchConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language,
int grams) |
Constructor and Description |
---|
PortugueseConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Constructor and Description |
---|
RussianConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |
Modifier and Type | Field and Description |
---|---|
protected LanguageModel |
SpellingCheckRule.languageModel |
Constructor and Description |
---|
SpellingCheckRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
SymSpellRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
Constructor and Description |
---|
CompoundAwareHunspellRule(ResourceBundle messages,
Language language,
CompoundWordTokenizer compoundSplitter,
MorfologikMultiSpeller morfoSpeller,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
HunspellRule(ResourceBundle messages,
Language language,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel) |
Constructor and Description |
---|
MorfologikSpellerRule(ResourceBundle messages,
Language language,
GlobalConfig globalConfig,
UserConfig userConfig,
List<Language> altLanguages,
LanguageModel languageModel,
Language motherTongue) |
Modifier and Type | Field and Description |
---|---|
protected LanguageModel |
SuggestionsOrdererFeatureExtractor.languageModel |
Constructor and Description |
---|
SuggestionsOrdererFeatureExtractor(Language lang,
LanguageModel languageModel) |
Constructor and Description |
---|
ChineseConfusionProbabilityRule(ResourceBundle messages,
LanguageModel languageModel,
Language language) |