futokb/native/jni
Adrian Velicu 009e02ce4a Further fixes to treat 0-frequency words
Previously, when both legitimate 0-frequency words (such as
distracters) and offensive words were encoded in the same
way, distracters would never show up when the user blocked
offensive words (the default setting, as well as the setting
for regression tests).

When b/11031090 was fixed and a separate encoding was used
for offensive words, 0-frequency words would no longer be
blocked when they were an "exact match" (where case
mismatches and accent mismatches would be considered an
"exact match"). The exact match boosting functionality meant
that, for example, when the user typed "mt" they would be
suggested the word "Mt", although they most probably meant
to type "my".

For this reason, we introduced this change, which does the
following:
* Defines the "perfect match" as a really exact match, with
no room for case or accent mismatches
* When the target word has probability zero (as "Mt" does,
because it is a distracter), ONLY boost its score if it is a
perfect match.

By doing this, when the user types "mt", the word "Mt" will
NOT be boosted, and they will get "my". However, if the user
makes an explicit effort to type "Mt", we do boost the word
"Mt" so that the user's input is not autocorrected to "My".

Bug: 11031090
Change-Id: I92ee1b4e742645d52e2f7f8c4390920481e8fff0
2014-10-31 15:58:50 +09:00
..
src Further fixes to treat 0-frequency words 2014-10-31 15:58:50 +09:00
tests Fix: native unit test build. 2014-10-31 12:50:45 +09:00
Android.mk Remove -fno-inline from profiling build. 2014-10-03 18:16:19 +09:00
Application.mk Specify c++_static for bundled Latin IME as well 2014-05-26 18:30:48 +09:00
CleanupNativeFileList.mk Generate dict code for version 401. 2014-05-14 19:09:01 +09:00
com_android_inputmethod_keyboard_ProximityInfo.cpp [ML13] Fix the locale passing in ProximityInfo 2014-10-03 18:16:34 +09:00
com_android_inputmethod_keyboard_ProximityInfo.h
com_android_inputmethod_latin_BinaryDictionary.cpp Use trigrams for personalization dict. 2014-10-23 14:32:45 +09:00
com_android_inputmethod_latin_BinaryDictionary.h
com_android_inputmethod_latin_BinaryDictionaryUtils.cpp Remove shouldBlockAutoCorrectionBySafetyNet 2014-10-14 11:20:33 +09:00
com_android_inputmethod_latin_BinaryDictionaryUtils.h Separate utility methods from BinaryDictionary in native code. 2014-03-05 12:49:04 +09:00
com_android_inputmethod_latin_DicTraverseSession.cpp Rename prev_words_info.h to ngram_context.h 2014-10-09 21:28:19 +09:00
com_android_inputmethod_latin_DicTraverseSession.h
HostUnitTests.mk Enable Address Sanitizer for native host test 2nd try 2014-10-23 10:16:55 +00:00
jni_common.cpp RegisterNatives() returns 0 on success. 2014-03-26 20:47:14 +09:00
jni_common.h
NativeFileList.mk Add DynamicLanguageModelProbabilityUtils. 2014-10-30 21:33:57 +09:00
run-tests.sh Stop building host native test in unbundled build 2014-10-23 18:31:06 +09:00
TargetUnitTests.mk Add native unittest support on target devices for LatinIME 2014-06-23 14:41:34 +09:00