diff options
author | 2014-10-01 07:55:39 +0000 | |
---|---|---|
committer | 2014-10-01 07:55:39 +0000 | |
commit | bcbbceba2e44e305878a19f0bbc8532993e3cfd3 (patch) | |
tree | b886bc1023ec2d5bb3669d291ca5d265b83665a1 /java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java | |
parent | b4226d487c4c224567d85643fe9a0b34a076a287 (diff) | |
parent | 108dad1491d44bf381fdb5d4f0767fb251f28522 (diff) | |
download | latinime-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 'java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java')
-rw-r--r-- | java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java b/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java index 34f59e8bc..7e8e55990 100644 --- a/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java +++ b/java/src/com/android/inputmethod/latin/utils/CombinedFormatUtils.java @@ -67,7 +67,7 @@ public class CombinedFormatUtils { builder.append("," + BLACKLISTED_TAG + "=true"); } builder.append("\n"); - if (wordProperty.mShortcutTargets != null) { + if (wordProperty.mHasShortcuts) { for (final WeightedString shortcutTarget : wordProperty.mShortcutTargets) { builder.append(" " + SHORTCUT_TAG + "=" + shortcutTarget.mWord); builder.append(","); @@ -75,8 +75,9 @@ public class CombinedFormatUtils { builder.append("\n"); } } - if (wordProperty.mBigrams != null) { - for (final WeightedString bigram : wordProperty.mBigrams) { + if (wordProperty.mHasNgrams) { + // TODO: Support ngram. + for (final WeightedString bigram : wordProperty.getBigrams()) { builder.append(" " + BIGRAM_TAG + "=" + bigram.mWord); builder.append(","); builder.append(formatProbabilityInfo(bigram.mProbabilityInfo)); |