Skip to content
Snippets Groups Projects
Commit 1df8c82d authored by satok's avatar satok
Browse files

Fix a bug that a word with only one missing word is not promoted

Bug: 4027223

Change-Id: Icf7c5b917c18b565dca95b98b96c1c8e2963f540
parent 3c4bb774
No related branches found
No related tags found
No related merge requests found
......@@ -521,7 +521,7 @@ inline int UnigramDictionary::calculateFinalFreq(const int inputIndex, const int
finalFreq = capped255MultForFullMatchAccentsOrCapitalizationDifference(finalFreq);
}
}
if (sameLength && skipPos < 0) finalFreq *= FULL_WORD_MULTIPLIER;
if (sameLength) finalFreq *= FULL_WORD_MULTIPLIER;
return finalFreq;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment