aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/unigram_dictionary.cpp
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-08-11 01:25:08 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-08-11 01:25:08 -0700
commitc122cfc8fd9e14d8b6e193770b33cf669ff6239c (patch)
tree694ef272a9c23a8910ed478db46c83c445aa4c48 /native/src/unigram_dictionary.cpp
parent28966734619251f78812f6a53f5efacbf5f77c49 (diff)
parentf3948c1eacee57a9ba4b689ada992cd460596d9f (diff)
downloadlatinime-c122cfc8fd9e14d8b6e193770b33cf669ff6239c.tar.gz
latinime-c122cfc8fd9e14d8b6e193770b33cf669ff6239c.tar.xz
latinime-c122cfc8fd9e14d8b6e193770b33cf669ff6239c.zip
Merge "Calculate the skip correction by one loop"
Diffstat (limited to 'native/src/unigram_dictionary.cpp')
-rw-r--r--native/src/unigram_dictionary.cpp10
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);