diff options
author | 2014-02-10 06:10:50 +0000 | |
---|---|---|
committer | 2014-02-10 06:10:51 +0000 | |
commit | 2ef87aee3e36e2c1121b454e321e59b4b450dd82 (patch) | |
tree | 442268c5db53c4e4e03cf0c2d88dd82bf313de66 /tests/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderEncoderTests.java | |
parent | cbb0a6de3b3ef0afad604bc2b62319d47b6e2f5d (diff) | |
parent | 8ffc631826b108423f98e3ff4d987f067cbc4e0c (diff) | |
download | latinime-2ef87aee3e36e2c1121b454e321e59b4b450dd82.tar.gz latinime-2ef87aee3e36e2c1121b454e321e59b4b450dd82.tar.xz latinime-2ef87aee3e36e2c1121b454e321e59b4b450dd82.zip |
Merge "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)); } } } |