| Package | Description |
|---|---|
| com.aliasi.spell |
Classes for spelling correction and edit distance.
|
| Modifier and Type | Method and Description |
|---|---|
CompiledNGramProcessLM |
CompiledSpellChecker.languageModel()
Returns the compiled language model for this spell checker.
|
| Modifier and Type | Method and Description |
|---|---|
void |
CompiledSpellChecker.setLanguageModel(CompiledNGramProcessLM lm)
Sets the language model for this spell checker to the
specified value.
|
| Constructor and Description |
|---|
CompiledSpellChecker(CompiledNGramProcessLM lm,
WeightedEditDistance editDistance,
Set<String> tokenSet)
Construct a compiled spell checker based on the specified
language model and edit distance, with a null tokenizer
factory, the specified set of valid output tokens, with default
value for n-best size, known token edit cost and first and
second character edit costs.
|
CompiledSpellChecker(CompiledNGramProcessLM lm,
WeightedEditDistance editDistance,
Set<String> tokenSet,
int nBestSize)
Construct a compiled spell checker based on the specified
language model and edit distance, a null tokenizer factory, the
set of valid output tokens, and maximum n-best size, with
default known token and first and second character edit costs.
|
CompiledSpellChecker(CompiledNGramProcessLM lm,
WeightedEditDistance editDistance,
TokenizerFactory factory,
Set<String> tokenSet,
int nBestSize)
Construct a compiled spell checker based on the specified
language model and edit distance, tokenizer factory, the
set of valid output tokens, and maximum n-best size, with
default known token and first and second character edit costs.
|
CompiledSpellChecker(CompiledNGramProcessLM lm,
WeightedEditDistance editDistance,
TokenizerFactory factory,
Set<String> tokenSet,
int nBestSize,
double knownTokenEditCost,
double firstCharEditCost,
double secondCharEditCost)
Construct a compiled spell checker based on the specified
language model and similarity edit distance, set of valid
output tokens, maximum n-best size per character, and the
specified edit penalities for editing known tokens or the first
or second characters of tokens.
|
Copyright © 2019 Alias-i, Inc.. All rights reserved.