diff options
author | 2011-03-07 17:33:34 -0800 | |
---|---|---|
committer | 2011-03-07 18:01:09 -0800 | |
commit | 1df8c82d71ec2a221f07a8842fd19bf43f772200 (patch) | |
tree | 8bfac60362b5f51dd2a081fc7405e6d2dd7669e5 | |
parent | 3c4bb7747d1a16d6b9d2d34992bad250069632a7 (diff) | |
download | latinime-1df8c82d71ec2a221f07a8842fd19bf43f772200.tar.gz latinime-1df8c82d71ec2a221f07a8842fd19bf43f772200.tar.xz latinime-1df8c82d71ec2a221f07a8842fd19bf43f772200.zip |
Fix a bug that a word with only one missing word is not promoted
Bug: 4027223
Change-Id: Icf7c5b917c18b565dca95b98b96c1c8e2963f540
-rw-r--r-- | native/src/unigram_dictionary.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp index c2cd76084..30fbaeae1 100644 --- a/native/src/unigram_dictionary.cpp +++ b/native/src/unigram_dictionary.cpp @@ -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; } |