Home
last modified time | relevance | path

Searched refs:unigramFreq (Results 1 – 3 of 3) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/
Dbinary_format.h70 static int computeFrequencyForBigram(const int unigramFreq, const int bigramFreq);
72 const uint8_t *bigramFilter, const int unigramFreq);
526 static inline int backoff(const int unigramFreq) { in backoff() argument
527 return unigramFreq; in backoff()
535 inline int BinaryFormat::computeFrequencyForBigram(const int unigramFreq, const int bigramFreq) { in computeFrequencyForBigram() argument
541 const float stepSize = ((float)MAX_FREQ - unigramFreq) / (1.5f + MAX_BIGRAM_FREQ); in computeFrequencyForBigram()
542 return (int)(unigramFreq + (bigramFreq + 1) * stepSize); in computeFrequencyForBigram()
547 const uint8_t *bigramFilter, const int unigramFreq) { in getProbability() argument
548 if (!bigramMap || !bigramFilter) return backoff(unigramFreq); in getProbability()
549 if (!isInFilter(bigramFilter, position)) return backoff(unigramFreq); in getProbability()
[all …]
Dbigram_dictionary.cpp120 int unigramFreq = 0; in getBigrams() local
124 bigramBuffer, &unigramFreq); in getBigrams()
135 BinaryFormat::computeFrequencyForBigram(unigramFreq, bigramFreq); in getBigrams()
Dunigram_dictionary.cpp823 const int unigramFreq = BinaryFormat::readFrequencyWithoutMovingPointer(root, pos); in getFrequency() local
824 return unigramFreq; in getFrequency()
927 const int unigramFreq = BinaryFormat::readFrequencyWithoutMovingPointer(DICT_ROOT, pos); in processCurrentNode() local
934 unigramFreq); in processCurrentNode()