aboutsummaryrefslogtreecommitdiffstats
path: root/native/src/unigram_dictionary.cpp
diff options
context:
space:
mode:
authorsatok <satok@google.com>2011-10-03 04:24:40 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2011-10-03 04:24:40 -0700
commitc812d0b816c6e3ac4a2df23b5831b17acdc7c414 (patch)
tree23a38642b4ab06cda2d1b2c25aed9d513bdcd8ae /native/src/unigram_dictionary.cpp
parent45f45a4fdb16d0fa44b4a34b880e5fabb41c1492 (diff)
parenteb050fc2dc97a7e6ddcaf254c110dc16279dfd0d (diff)
downloadlatinime-c812d0b816c6e3ac4a2df23b5831b17acdc7c414.tar.gz
latinime-c812d0b816c6e3ac4a2df23b5831b17acdc7c414.tar.xz
latinime-c812d0b816c6e3ac4a2df23b5831b17acdc7c414.zip
Merge "Demote words with a capitalized char"
Diffstat (limited to 'native/src/unigram_dictionary.cpp')
-rw-r--r--native/src/unigram_dictionary.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/native/src/unigram_dictionary.cpp b/native/src/unigram_dictionary.cpp
index f23bd3208..8eb5a9700 100644
--- a/native/src/unigram_dictionary.cpp
+++ b/native/src/unigram_dictionary.cpp
@@ -431,7 +431,7 @@ void UnigramDictionary::getSplitTwoWordsSuggestion(
word[i] = mWord[i - firstWordLength - 1];
}
- const int pairFreq = mCorrection->getFreqForSplitTwoWords(firstFreq, secondFreq);
+ const int pairFreq = mCorrection->getFreqForSplitTwoWords(firstFreq, secondFreq, word);
if (DEBUG_DICT) {
LOGI("Split two words: %d, %d, %d, %d", firstFreq, secondFreq, pairFreq, inputLength);
}