aboutsummaryrefslogtreecommitdiffstats
path: root/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java
diff options
context:
space:
mode:
authorKeisuke Kuroyanagi <ksk@google.com>2014-02-05 12:53:14 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-02-05 12:53:14 +0000
commit239f7daf4a1fa9f83a4ce54a840c0fdc011f3b4c (patch)
treec9427063d5c916d0ddf65b5927d4973c0eead4bd /java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java
parente42380a471c0765ccd71ae34d6bc99a272deec52 (diff)
parentdf1d3e733e2b000c776e74b54d3c62f0d433b013 (diff)
downloadlatinime-239f7daf4a1fa9f83a4ce54a840c0fdc011f3b4c.tar.gz
latinime-239f7daf4a1fa9f83a4ce54a840c0fdc011f3b4c.tar.xz
latinime-239f7daf4a1fa9f83a4ce54a840c0fdc011f3b4c.zip
Merge "Make WeightedString have ProbabilityInfo."
Diffstat (limited to 'java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java')
-rw-r--r--java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java b/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java
index 369184573..9f2345962 100644
--- a/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java
+++ b/java/src/com/android/inputmethod/latin/makedict/BinaryDictDecoderUtils.java
@@ -511,7 +511,7 @@ public final class BinaryDictDecoderUtils {
final WeightedString word = getWordAtPosition(dictDecoder, headerSize,
bigram.mAddress, options);
final int reconstructedFrequency =
- BinaryDictIOUtils.reconstructBigramFrequency(word.mFrequency,
+ BinaryDictIOUtils.reconstructBigramFrequency(word.getProbability(),
bigram.mFrequency);
bigrams.add(new WeightedString(word.mWord, reconstructedFrequency));
}
@@ -618,7 +618,7 @@ public final class BinaryDictDecoderUtils {
// words that are not also registered as unigrams so we don't have to avoid
// them explicitly here.
for (final WeightedString bigram : w.mBigrams) {
- newDict.setBigram(w.mWord, bigram.mWord, bigram.mFrequency);
+ newDict.setBigram(w.mWord, bigram.mWord, bigram.getProbability());
}
}
}