diff options
author | 2014-05-19 05:00:21 +0000 | |
---|---|---|
committer | 2014-05-19 05:00:21 +0000 | |
commit | b52055bfd167df67cf4ef155324c2e896c7a20cf (patch) | |
tree | 88c4d8280d01c741e0d792dee8f282e24e8f1753 /java/src/com/android/inputmethod/latin/Dictionary.java | |
parent | 10bd458efc2cc04d30df279e68e43c242a6cc60a (diff) | |
parent | 83c40a2301a0b5a42a75eecada48e7887a7c940e (diff) | |
download | latinime-b52055bfd167df67cf4ef155324c2e896c7a20cf.tar.gz latinime-b52055bfd167df67cf4ef155324c2e896c7a20cf.tar.xz latinime-b52055bfd167df67cf4ef155324c2e896c7a20cf.zip |
Merge "Use PrevWordsInfo instead of String in Java side."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/Dictionary.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/Dictionary.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/java/src/com/android/inputmethod/latin/Dictionary.java b/java/src/com/android/inputmethod/latin/Dictionary.java index 5253cc3dd..aab16653e 100644 --- a/java/src/com/android/inputmethod/latin/Dictionary.java +++ b/java/src/com/android/inputmethod/latin/Dictionary.java @@ -69,7 +69,7 @@ public abstract class Dictionary { * Searches for suggestions for a given context. For the moment the context is only the * previous word. * @param composer the key sequence to match with coordinate info, as a WordComposer - * @param prevWord the previous word, or null if none + * @param prevWordsInfo the information of previous words. * @param proximityInfo the object for key proximity. May be ignored by some implementations. * @param blockOffensiveWords whether to block potentially offensive words * @param additionalFeaturesOptions options about additional features used for the suggestion. @@ -79,10 +79,8 @@ public abstract class Dictionary { * different language weight is used. * @return the list of suggestions (possibly null if none) */ - // TODO: pass more context than just the previous word, to enable better suggestions (n-gram - // and more) abstract public ArrayList<SuggestedWordInfo> getSuggestions(final WordComposer composer, - final String prevWord, final ProximityInfo proximityInfo, + final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, final boolean blockOffensiveWords, final int[] additionalFeaturesOptions, final int sessionId, final float[] inOutLanguageWeight); @@ -156,7 +154,7 @@ public abstract class Dictionary { @Override public ArrayList<SuggestedWordInfo> getSuggestions(final WordComposer composer, - final String prevWord, final ProximityInfo proximityInfo, + final PrevWordsInfo prevWordsInfo, final ProximityInfo proximityInfo, final boolean blockOffensiveWords, final int[] additionalFeaturesOptions, final int sessionId, final float[] inOutLanguageWeight) { return null; |