Searched refs:unigramFreq (Results 1 – 3 of 3) sorted by relevance
70 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() argument527 return unigramFreq; in backoff()535 inline int BinaryFormat::computeFrequencyForBigram(const int unigramFreq, const int bigramFreq) { in computeFrequencyForBigram() argument541 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() argument548 if (!bigramMap || !bigramFilter) return backoff(unigramFreq); in getProbability()549 if (!isInFilter(bigramFilter, position)) return backoff(unigramFreq); in getProbability()[all …]
120 int unigramFreq = 0; in getBigrams() local124 bigramBuffer, &unigramFreq); in getBigrams()135 BinaryFormat::computeFrequencyForBigram(unigramFreq, bigramFreq); in getBigrams()
823 const int unigramFreq = BinaryFormat::readFrequencyWithoutMovingPointer(root, pos); in getFrequency() local824 return unigramFreq; in getFrequency()927 const int unigramFreq = BinaryFormat::readFrequencyWithoutMovingPointer(DICT_ROOT, pos); in processCurrentNode() local934 unigramFreq); in processCurrentNode()