diff options
author | 2012-01-30 13:53:58 +0900 | |
---|---|---|
committer | 2012-01-30 18:01:25 +0900 | |
commit | 1f6b52e76c59700984fe2b7d7b436d81da997e93 (patch) | |
tree | 335c7abb4c6e5a567397764d7cc20124bbcde1bf /native/src/correction.cpp | |
parent | 38a3ad3e3ca1b4e594bcd189277454d12619b868 (diff) | |
download | latinime-1f6b52e76c59700984fe2b7d7b436d81da997e93.tar.gz latinime-1f6b52e76c59700984fe2b7d7b436d81da997e93.tar.xz latinime-1f6b52e76c59700984fe2b7d7b436d81da997e93.zip |
Implement multi words suggestions step1
Change-Id: I96e8e1b0d9ccc0ed13d53c40300d8c19bcb7af5b
Diffstat (limited to 'native/src/correction.cpp')
-rw-r--r-- | native/src/correction.cpp | 11 |
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; } |