diff options
author | 2014-02-09 22:13:56 -0800 | |
---|---|---|
committer | 2014-02-09 22:13:56 -0800 | |
commit | b4fbf9ac2f309b23a8f1d7414839b424d1ffc149 (patch) | |
tree | c9c8dbe0a329eba313fc133aede741aef8be9d20 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java | |
parent | 4ed37fface9f53767a3f4cde22916e033a9e8bfd (diff) | |
parent | 2ef87aee3e36e2c1121b454e321e59b4b450dd82 (diff) | |
download | latinime-b4fbf9ac2f309b23a8f1d7414839b424d1ffc149.tar.gz latinime-b4fbf9ac2f309b23a8f1d7414839b424d1ffc149.tar.xz latinime-b4fbf9ac2f309b23a8f1d7414839b424d1ffc149.zip |
am 2ef87aee: Merge "Make PtNode have ProbabilityInfo instead of raw value."
* commit '2ef87aee3e36e2c1121b454e321e59b4b450dd82':
Make PtNode have ProbabilityInfo instead of raw value.
Diffstat (limited to 'tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java')
-rw-r--r-- | tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java index bc4452fd6..75a1aa3ca 100644 --- a/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java +++ b/tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java @@ -151,8 +151,8 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase { shortcuts.add(new WeightedString(shortcut, UNIGRAM_FREQ)); } } - dict.add(word, UNIGRAM_FREQ, (shortcutMap == null) ? null : shortcuts, - false /* isNotAWord */); + dict.add(word, new ProbabilityInfo(UNIGRAM_FREQ), + (shortcutMap == null) ? null : shortcuts, false /* isNotAWord */); } } @@ -162,7 +162,7 @@ public class BinaryDictDecoderEncoderTests extends AndroidTestCase { for (int i = 0; i < bigrams.size(); ++i) { final int w1 = bigrams.keyAt(i); for (int w2 : bigrams.valueAt(i)) { - dict.setBigram(words.get(w1), words.get(w2), BIGRAM_FREQ); + dict.setBigram(words.get(w1), words.get(w2), new ProbabilityInfo(BIGRAM_FREQ)); } } } |