Searched refs:maxBigramCount (Results 1 – 3 of 3) sorted by relevance
129 const int maxBigramCount = headerPolicy->getMaxNgramCounts().getNgramCount(NgramType::Bigram); in runGC() local130 if (headerPolicy->isDecayingDict() && bigramCount > maxBigramCount) { in runGC()131 if (!truncateBigrams(maxBigramCount)) { in runGC()132 AKLOGE("Cannot remove bigrams. current: %d, max: %d", bigramCount, maxBigramCount); in runGC()242 bool Ver4PatriciaTrieWritingHelper::truncateBigrams(const int maxBigramCount) { in truncateBigrams() argument274 while (static_cast<int>(priorityQueue.size()) > maxBigramCount) { in truncateBigrams()
132 bool truncateBigrams(const int maxBigramCount);
527 final int maxBigramCount = 10000; in testRandomOperationsAndFlashWithGC() local530 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testRandomOperationsAndFlashWithGC()658 final int maxBigramCount = 10000; in testUnigramAndBigramCount() local661 attributeMap.put(DictionaryHeader.MAX_BIGRAM_COUNT_KEY, String.valueOf(maxBigramCount)); in testUnigramAndBigramCount()