diff options
author | 2011-08-11 16:27:28 +0900 | |
---|---|---|
committer | 2011-08-11 17:18:23 +0900 | |
commit | f3948c1eacee57a9ba4b689ada992cd460596d9f (patch) | |
tree | 3938e7e093efadfa52c16a84a3b53cbd23f91a68 /native/src/unigram_dictionary.cpp | |
parent | 635f68e8222901d607a5ca6fab95985bc496d72a (diff) | |
download | latinime-f3948c1eacee57a9ba4b689ada992cd460596d9f.tar.gz latinime-f3948c1eacee57a9ba4b689ada992cd460596d9f.tar.xz latinime-f3948c1eacee57a9ba4b689ada992cd460596d9f.zip |
Calculate the skip correction by one loop
Change-Id: Ie70829407cd58be2ffe75c7d649d86f62ee4df24
Diffstat (limited to 'native/src/unigram_dictionary.cpp')
-rw-r--r-- | native/src/unigram_dictionary.cpp | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp index bbfaea454..6517bc0b8 100644 --- a/native/src/unigram_dictionary.cpp +++ b/native/src/unigram_dictionary.cpp @@ -193,14 +193,8 @@ void UnigramDictionary::getWordSuggestions(ProximityInfo *proximityInfo, PROF_START(2); // Suggestion with missing character - if (SUGGEST_WORDS_WITH_MISSING_CHARACTER) { - for (int i = 0; i < codesSize; ++i) { - if (DEBUG_DICT) { - LOGI("--- Suggest missing characters %d", i); - } - getSuggestionCandidates(i, -1, -1); - } - } + LOGI("--- Suggest missing characters"); + getSuggestionCandidates(0, -1, -1); PROF_END(2); PROF_START(3); |