aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
diff options
context:
space:
mode:
authorJean Chalard <jchalard@google.com>2011-04-06 11:17:08 +0900
committerJean Chalard <jchalard@google.com>2011-04-06 12:26:01 +0900
commit3e2368286294077421240b89e7e3cadb435ce4e0 (patch)
tree1835dc5efd5e2bc74b3e9a1be3ca9edefaf2d1ab /java/src/com/android/inputmethod/latin/UserBigramDictionary.java
parentfd58877d4ffaf4e990171d81b283e73952fb788b (diff)
downloadlatinime-3e2368286294077421240b89e7e3cadb435ce4e0.tar.gz
latinime-3e2368286294077421240b89e7e3cadb435ce4e0.tar.xz
latinime-3e2368286294077421240b89e7e3cadb435ce4e0.zip
Reinforce user-history based bigram use.
- Have user-history based bigrams used as soon as they are entered, not after 6 times. - Limit bigram frequency to 255 (this limits the multiplier to 1.8, and has no effect on main dict bigrams which already have this limit) - Some TODO resolving bug: 4192129 Change-Id: I4777f1a58c43dd55381c4b01252d722ab3a70547
Diffstat (limited to '')
-rw-r--r--java/src/com/android/inputmethod/latin/UserBigramDictionary.java6
1 files changed, 0 insertions, 6 deletions
diff --git a/java/src/com/android/inputmethod/latin/UserBigramDictionary.java b/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
index 4750fb991..bb6642cd9 100644
--- a/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
+++ b/java/src/com/android/inputmethod/latin/UserBigramDictionary.java
@@ -44,12 +44,6 @@ public class UserBigramDictionary extends ExpandableDictionary {
/** Maximum frequency for all pairs */
private static final int FREQUENCY_MAX = 127;
- /**
- * If this pair is typed 6 times, it would be suggested.
- * Should be smaller than ContactsDictionary.FREQUENCY_FOR_CONTACTS_BIGRAM
- */
- protected static final int SUGGEST_THRESHOLD = 6 * FREQUENCY_FOR_TYPED;
-
/** Maximum number of pairs. Pruning will start when databases goes above this number. */
private static int sMaxUserBigrams = 10000;