diff options
author | 2013-05-01 19:47:32 +0900 | |
---|---|---|
committer | 2013-05-01 20:18:55 +0900 | |
commit | 6845427e5d48fe48f837cd96a52c209be5f40357 (patch) | |
tree | 7134bc43ad9e5e776cdef33ed136580cd41d34da /java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | |
parent | 25c90e6d51aeca5dce05b5adb691876b55a142d5 (diff) | |
download | latinime-6845427e5d48fe48f837cd96a52c209be5f40357.tar.gz latinime-6845427e5d48fe48f837cd96a52c209be5f40357.tar.xz latinime-6845427e5d48fe48f837cd96a52c209be5f40357.zip |
DO NOT MERGE: Return possible suggestions in Google Spell Checker
Bug: 8772531
By the change in the suggestion algorithm, the pruning of the suggestions is not required anymore. This has been fixed in master branch properly.
Change-Id: I6ab9da953d69ff726d2bc328c09064e6ade0dcea
Diffstat (limited to 'java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java index 2d0a89bb3..166705954 100644 --- a/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java +++ b/java/src/com/android/inputmethod/latin/spellcheck/AndroidSpellCheckerService.java @@ -267,16 +267,7 @@ public final class AndroidSpellCheckerService extends SpellCheckerService return true; } - // Compute the normalized score and skip this word if it's normalized score does not - // make the threshold. final String wordString = new String(word, wordOffset, wordLength); - final float normalizedScore = - BinaryDictionary.calcNormalizedScore(mOriginalText, wordString, score); - if (normalizedScore < mSuggestionThreshold) { - if (DBG) Log.i(TAG, wordString + " does not make the score threshold"); - return true; - } - if (mLength < mMaxLength) { final int copyLen = mLength - insertIndex; ++mLength; |