diff options
author | 2012-05-23 19:55:27 +0900 | |
---|---|---|
committer | 2012-05-23 20:40:59 +0900 | |
commit | a0ac31fcaa01c21592a6e7af243c14dada65cf3e (patch) | |
tree | 25823d1dd38b8e62726f3dea32aacbc7d16d5f32 /native/jni/src/correction.cpp | |
parent | 0b6b6ee542c0e143868538acdf5b161013c0b1de (diff) | |
download | latinime-a0ac31fcaa01c21592a6e7af243c14dada65cf3e.tar.gz latinime-a0ac31fcaa01c21592a6e7af243c14dada65cf3e.tar.xz latinime-a0ac31fcaa01c21592a6e7af243c14dada65cf3e.zip |
Fix the issue on multiple words suggestion
Bug: 6509844
Change-Id: I823074a2b29befc3e60c63699ab4dc7719105c63
Diffstat (limited to 'native/jni/src/correction.cpp')
-rw-r--r-- | native/jni/src/correction.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/jni/src/correction.cpp b/native/jni/src/correction.cpp index 5ae34cd02..fe3f292c1 100644 --- a/native/jni/src/correction.cpp +++ b/native/jni/src/correction.cpp @@ -977,7 +977,7 @@ int Correction::RankingAlgorithm::calcFreqForSplitMultipleWords( } const int freq = freqArray[i]; // Demote too short weak words - if (wordLength <= 4 && freq <= MAX_FREQ * 2 / 3 /* heuristic... */) { + if (wordLength <= 4 && freq <= SUPPRESS_SHORT_MULTIPLE_WORDS_THRESHOLD_FREQ) { multiplyRate(100 * freq / MAX_FREQ, &totalFreq); } if (wordLength == 1) { |