Package | Description |
---|---|
org.languagetool.languagemodel | |
org.languagetool.rules.ngrams |
Modifier and Type | Method and Description |
---|---|
Probability |
LanguageModel.getPseudoProbability(List<String> context)
This is not always guaranteed to be a real probability (0.0 to 1.0).
|
Probability |
MultiLanguageModel.getPseudoProbability(List<String> context) |
Probability |
BaseLanguageModel.getPseudoProbability(List<String> context) |
Probability |
BaseLanguageModel.getPseudoProbabilityStupidBackoff(List<String> context) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
NgramProbabilityRule.acceptMatch(RuleMatch match,
Probability p,
AnalyzedSentence sentence)
Overwrite this method to discard matches by returning
false . |