diff options
author | 2012-05-23 05:06:08 -0700 | |
---|---|---|
committer | 2012-05-23 05:06:08 -0700 | |
commit | 074e8c920683d77fae191b34185193c896e3aa00 (patch) | |
tree | 766085fb7bceb87acb7c718bfe5c10dcda8ed426 /native/jni/src/correction.cpp | |
parent | a6f865541bb1f0db7d179d77d6c4fe10a22dc109 (diff) | |
parent | a0ac31fcaa01c21592a6e7af243c14dada65cf3e (diff) | |
download | latinime-074e8c920683d77fae191b34185193c896e3aa00.tar.gz latinime-074e8c920683d77fae191b34185193c896e3aa00.tar.xz latinime-074e8c920683d77fae191b34185193c896e3aa00.zip |
am a0ac31fc: Fix the issue on multiple words suggestion
* commit 'a0ac31fcaa01c21592a6e7af243c14dada65cf3e':
Fix the issue on multiple words suggestion
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 eb3b5b59b..f7ef7efc0 100644 --- a/native/jni/src/correction.cpp +++ b/native/jni/src/correction.cpp @@ -978,7 +978,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) { |