diff options
author | 2012-11-16 19:49:39 +0900 | |
---|---|---|
committer | 2012-11-16 19:49:39 +0900 | |
commit | 0b8258227075de27a1cc20a82a78e83ea2c018dd (patch) | |
tree | 379445a941e8227668c4b43ffe8e5962985c23b2 /java/src/com/android/inputmethod/latin/ExpandableDictionary.java | |
parent | 8b977c1ef83888725b30a4476abecbc6f11f90ab (diff) | |
parent | b5b434d8678d6c45c4832011340634b63734f45b (diff) | |
download | latinime-0b8258227075de27a1cc20a82a78e83ea2c018dd.tar.gz latinime-0b8258227075de27a1cc20a82a78e83ea2c018dd.tar.xz latinime-0b8258227075de27a1cc20a82a78e83ea2c018dd.zip |
Merge remote-tracking branch 'goog/master' into mergescriptpackage
Diffstat (limited to 'java/src/com/android/inputmethod/latin/ExpandableDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/ExpandableDictionary.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java index 16cc1b35f..fa0d5497b 100644 --- a/java/src/com/android/inputmethod/latin/ExpandableDictionary.java +++ b/java/src/com/android/inputmethod/latin/ExpandableDictionary.java @@ -31,6 +31,10 @@ import java.util.LinkedList; * be searched for suggestions and valid words. */ public class ExpandableDictionary extends Dictionary { + /** + * The weight to give to a word if it's length is the same as the number of typed characters. + */ + private static final int FULL_WORD_SCORE_MULTIPLIER = 2; // Bigram frequency is a fixed point number with 1 meaning 1.2 and 255 meaning 1.8. protected static final int BIGRAM_MAX_FREQUENCY = 255; |