am e6597388
: Merge "Fix: Personalized dicts suggest invalid words with v403."
* commit 'e65973882da72200db9c81a2135ae53be92b5ab0': Fix: Personalized dicts suggest invalid words with v403.
This commit is contained in:
commit
bdae18c03f
1 changed files with 3 additions and 2 deletions
|
@ -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 a new issue