mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix: Personalized dicts suggest invalid words with v403.
Bug: 14425059 Change-Id: I45ae00069dd3b7c461dd9a1f3558b96af0a1c975
This commit is contained in:
parent
ade5ad1dae
commit
090c3819d7
@ -74,8 +74,9 @@ namespace latinime {
|
||||
}
|
||||
const WordAttributes wordAttributes = dictionaryStructurePolicy->getWordAttributesInContext(
|
||||
dicNode->getPrevWordIds(), dicNode->getWordId(), multiBigramMap);
|
||||
if (dicNode->hasMultipleWords()
|
||||
&& (wordAttributes.isBlacklisted() || wordAttributes.isNotAWord())) {
|
||||
if (wordAttributes.getProbability() == NOT_A_PROBABILITY
|
||||
|| (dicNode->hasMultipleWords()
|
||||
&& (wordAttributes.isBlacklisted() || wordAttributes.isNotAWord()))) {
|
||||
return static_cast<float>(MAX_VALUE_FOR_WEIGHTING);
|
||||
}
|
||||
// TODO: This equation to calculate the improbability looks unreasonable. Investigate this.
|
||||
|
Loading…
Reference in New Issue
Block a user