Home
last modified time | relevance | path

Searched refs:unigramFrequency (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/
DBinaryDictEncoderUtils.java562 final int bigramFrequency, final int unigramFrequency, final String word) { in makeBigramFlags() argument
579 if (unigramFrequency > bigramFrequency) { in makeBigramFlags()
582 + word + " is " + unigramFrequency); in makeBigramFlags()
583 frequency = unigramFrequency; in makeBigramFlags()
587 bigramFlags += getBigramFrequencyDiff(unigramFrequency, frequency) in makeBigramFlags()
592 public static int getBigramFrequencyDiff(final int unigramFrequency, in getBigramFrequencyDiff() argument
618 (FormatSpec.MAX_TERMINAL_FREQUENCY - unigramFrequency) in getBigramFrequencyDiff()
620 final float firstStepStart = 1 + unigramFrequency + (stepSize / 2.0f); in getBigramFrequencyDiff()
DBinaryDictIOUtils.java285 public static int reconstructBigramFrequency(final int unigramFrequency, in reconstructBigramFrequency() argument
287 final float stepSize = (FormatSpec.MAX_TERMINAL_FREQUENCY - unigramFrequency) in reconstructBigramFrequency()
289 final float resultFreqFloat = unigramFrequency + stepSize * (bigramFrequency + 1.0f); in reconstructBigramFrequency()