aboutsummaryrefslogtreecommitdiffstats
path: root/native/jni/src/unigram_dictionary.cpp
diff options
context:
space:
mode:
authorsatok <satok@google.com>2012-05-15 17:43:31 +0900
committersatok <satok@google.com>2012-05-16 19:58:48 +0900
commitdb1939dbaa1de59eaf5693e2c89b02b323e9aac8 (patch)
tree9b67b48b8b83e9d3d5fc0bc3f0cdc9258517a9c2 /native/jni/src/unigram_dictionary.cpp
parent8dced70b062744a2c27e0cf6dcd0787cf598a97c (diff)
downloadlatinime-db1939dbaa1de59eaf5693e2c89b02b323e9aac8.tar.gz
latinime-db1939dbaa1de59eaf5693e2c89b02b323e9aac8.tar.xz
latinime-db1939dbaa1de59eaf5693e2c89b02b323e9aac8.zip
Reorder suggestions result according to auto correction threshold
Bug: 5413904 Change-Id: I3aa3a8109ba45d2129b58d8242866fd3dd3473cb
Diffstat (limited to 'native/jni/src/unigram_dictionary.cpp')
-rw-r--r--native/jni/src/unigram_dictionary.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/native/jni/src/unigram_dictionary.cpp b/native/jni/src/unigram_dictionary.cpp
index 9234b1b52..43fe892be 100644
--- a/native/jni/src/unigram_dictionary.cpp
+++ b/native/jni/src/unigram_dictionary.cpp
@@ -208,7 +208,8 @@ int UnigramDictionary::getSuggestions(ProximityInfo *proximityInfo,
AKLOGI("Max normalized score = %f", ns);
}
const int suggestedWordsCount =
- queuePool->getMasterQueue()->outputSuggestions(frequencies, outWords);
+ queuePool->getMasterQueue()->outputSuggestions(
+ proximityInfo->getPrimaryInputWord(), codesSize, frequencies, outWords);
if (DEBUG_DICT) {
double ns = queuePool->getMasterQueue()->getHighestNormalizedScore(