aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/correction.cpp
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-01-30 01:06:41 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-01-30 01:06:41 -0800
commitf800eb0889aa9895ca9a4f1473c22b57f50cce21 (patch)
tree69a46408b2842f09afe69e99197cd408b1bab960 /native/src/correction.cpp
parent3c505f2999ad8ec52f93abb1e808f34a2c674580 (diff)
parenta191afb78d47022a1cc4474ffa7d7ab872a9270b (diff)
downloadlatinime-f800eb0889aa9895ca9a4f1473c22b57f50cce21.tar.gz
latinime-f800eb0889aa9895ca9a4f1473c22b57f50cce21.tar.xz
latinime-f800eb0889aa9895ca9a4f1473c22b57f50cce21.zip
am a191afb7: Merge "Implement multi words suggestions step1"
* commit 'a191afb78d47022a1cc4474ffa7d7ab872a9270b': Implement multi words suggestions step1
Diffstat (limited to 'native/src/correction.cpp')
-rw-r--r--native/src/correction.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/native/src/correction.cpp b/native/src/correction.cpp
index ee5023532..7323747d7 100644
--- a/native/src/correction.cpp
+++ b/native/src/correction.cpp
@@ -827,11 +827,6 @@ int Correction::RankingAlgorithm::calcFreqForSplitTwoWords(
const bool capitalizedWordDemotion =
firstCapitalizedWordDemotion ^ secondCapitalizedWordDemotion;
- if (DEBUG_DICT_FULL) {
- AKLOGI("Two words: %c, %c, %d",
- word[0], word[firstWordLength + 1], capitalizedWordDemotion);
- }
-
if (firstWordLength == 0 || secondWordLength == 0) {
return 0;
}
@@ -891,6 +886,12 @@ int Correction::RankingAlgorithm::calcFreqForSplitTwoWords(
multiplyRate(TWO_WORDS_CAPITALIZED_DEMOTION_RATE, &totalFreq);
}
+ if (DEBUG_CORRECTION_FREQ) {
+ AKLOGI("Two words (%d, %d) (%d, %d) %d, %d", firstFreq, secondFreq, firstWordLength,
+ secondWordLength, capitalizedWordDemotion, totalFreq);
+ DUMP_WORD(word, firstWordLength);
+ }
+
return totalFreq;
}