diff options
author | 2012-03-16 16:16:02 +0900 | |
---|---|---|
committer | 2012-03-16 17:01:57 +0900 | |
commit | c68d1bbfafe4b2041db49523c044123f78d6635d (patch) | |
tree | 97166776032b5ba411c1af6dba1ec8a08acee690 /java/src/com/android/inputmethod/latin/UserUnigramDictionary.java | |
parent | c24f66e18007b5aba32bfab8f86eb7f03fa6c1b7 (diff) | |
download | latinime-c68d1bbfafe4b2041db49523c044123f78d6635d.tar.gz latinime-c68d1bbfafe4b2041db49523c044123f78d6635d.tar.xz latinime-c68d1bbfafe4b2041db49523c044123f78d6635d.zip |
Move the UserUnigramDictionary functionality over
UserBigramDictionary now assumes both functionalities. It will
be renamed to UserHistoryDictionary in a future change.
There are several reasons to do this. First, there is a lot of
duplicate code in User{Unigram,Bigram}Dictionaries that are
factored by the few lines of code in this change. Also, other
dictionaries like BinaryDictionary or ContactsDictionary all
assume both responsibilities, as should be the case
theoretically.
It is also possible to do this because previous versions don't
write any unigram data that we'd want to reuse. For even older
versions that do write data, we can't really make any sense out
of it. Bigram data however can be useful, and this allows us to
reuse it easily.
Change-Id: I755525f92744e1536eaef097527e8151b7859a30
Diffstat (limited to 'java/src/com/android/inputmethod/latin/UserUnigramDictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/UserUnigramDictionary.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/src/com/android/inputmethod/latin/UserUnigramDictionary.java b/java/src/com/android/inputmethod/latin/UserUnigramDictionary.java index 2fc395c3e..e278b2597 100644 --- a/java/src/com/android/inputmethod/latin/UserUnigramDictionary.java +++ b/java/src/com/android/inputmethod/latin/UserUnigramDictionary.java @@ -35,7 +35,7 @@ import java.util.Set; * based dictionary. It stores words that the user typed to supply a provision * for suggesting and re-ordering of candidates. */ -public class UserUnigramDictionary extends ExpandableDictionary { +class UserUnigramDictionary extends ExpandableDictionary { static final boolean ENABLE_USER_UNIGRAM_DICTIONARY = false; // Weight added to a user picking a new word from the suggestion strip |