aboutsummaryrefslogtreecommitdiffstats
path: root/tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-10-01 07:55:39 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-01 07:55:39 +0000
commitbcbbceba2e44e305878a19f0bbc8532993e3cfd3 (patch)
treeb886bc1023ec2d5bb3669d291ca5d265b83665a1 /tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
parentb4226d487c4c224567d85643fe9a0b34a076a287 (diff)
parent108dad1491d44bf381fdb5d4f0767fb251f28522 (diff)
downloadlatinime-bcbbceba2e44e305878a19f0bbc8532993e3cfd3.tar.gz
latinime-bcbbceba2e44e305878a19f0bbc8532993e3cfd3.tar.xz
latinime-bcbbceba2e44e305878a19f0bbc8532993e3cfd3.zip
am 108dad14: Merge "Introduce NgramProperty in Java side."
* commit '108dad1491d44bf381fdb5d4f0767fb251f28522': Introduce NgramProperty in Java side.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java')
-rw-r--r--tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java b/tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
index 5e8417ed6..0da915a75 100644
--- a/tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
+++ b/tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
@@ -97,12 +97,13 @@ public class Ver4DictDecoder extends AbstractDictDecoder {
}
}
// Insert bigrams into the fusion dictionary.
+ // TODO: Support ngrams.
for (final WordProperty wordProperty : wordProperties) {
- if (wordProperty.mBigrams == null) {
+ if (!wordProperty.mHasNgrams) {
continue;
}
final String word0 = wordProperty.mWord;
- for (final WeightedString bigram : wordProperty.mBigrams) {
+ for (final WeightedString bigram : wordProperty.getBigrams()) {
fusionDict.setBigram(word0, bigram.mWord, bigram.mProbabilityInfo);
}
}