diff options
author | 2011-03-07 18:20:45 -0800 | |
---|---|---|
committer | 2011-03-07 18:20:45 -0800 | |
commit | 36e2abdd3be1a2492f0816ec0fb4da96abf3d395 (patch) | |
tree | b10d22892bfa86368c999a492ec58952c0c335c7 | |
parent | b84046a3bab147ee9b38c2be9ab196b2badb1ac0 (diff) | |
parent | 463418385c2bca0ec13a3f720e0dbdbe769004bd (diff) | |
download | latinime-36e2abdd3be1a2492f0816ec0fb4da96abf3d395.tar.gz latinime-36e2abdd3be1a2492f0816ec0fb4da96abf3d395.tar.xz latinime-36e2abdd3be1a2492f0816ec0fb4da96abf3d395.zip |
am 46341838: Merge "Fix a bug that a word with only one missing word is not promoted" into honeycomb-mr1
* commit '463418385c2bca0ec13a3f720e0dbdbe769004bd':
Fix a bug that a word with only one missing word is not promoted
-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; } |