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 11:21:08 +0900
committerKeisuke Kuroyanagi <ksk@google.com>2014-10-01 11:21:08 +0900
commitc6a6f6a9905ab98516d944ac85933d016e4147fb (patch)
treed191a3f3e93e5972e35293d264900b5222147110 /tests/src/com/android/inputmethod/latin/makedict/Ver4DictDecoder.java
parent79bb37d499ed6fcabe981153d5ff0b5b69509933 (diff)
downloadlatinime-c6a6f6a9905ab98516d944ac85933d016e4147fb.tar.gz
latinime-c6a6f6a9905ab98516d944ac85933d016e4147fb.tar.xz
latinime-c6a6f6a9905ab98516d944ac85933d016e4147fb.zip
Introduce NgramProperty in Java side.
Bug: 14425059 Change-Id: I8b3458ad22730b3dccbe0caea2c5930f5276dc82
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);
}
}