Searched refs:bigramEntry (Results 1 – 5 of 5) sorted by relevance
41 const BigramEntry bigramEntry = in getNextBigram() local46 bigramEntry.getTargetTerminalId()); in getNextBigram()49 if (bigramEntry.hasHistoricalInfo()) { in getNextBigram()51 ForgettingCurveUtils::decodeProbability(bigramEntry.getHistoricalInfo(), in getNextBigram()54 *outProbability = bigramEntry.getProbability(); in getNextBigram()58 *outHasNext = bigramEntry.hasNext(); in getNextBigram()157 const BigramEntry bigramEntry = mBigramDictContent->getBigramEntry(entryPosToUpdate); in removeEntry() local158 if (targetTerminalId != bigramEntry.getTargetTerminalId()) { in removeEntry()163 const BigramEntry updatedBigramEntry = bigramEntry.getInvalidatedEntry(); in removeEntry()178 const BigramEntry bigramEntry = in updateAllBigramEntriesAndDeleteUselessEntries() local[all …]
258 const BigramEntry bigramEntry = in truncateBigrams() local260 hasNext = bigramEntry.hasNext(); in truncateBigrams()261 if (!bigramEntry.isValid()) { in truncateBigrams()264 const int probability = bigramEntry.hasHistoricalInfo() ? in truncateBigrams()266 bigramEntry.getHistoricalInfo(), mBuffers->getHeaderPolicy()) : in truncateBigrams()267 bigramEntry.getProbability(); in truncateBigrams()269 bigramEntry.getHistoricalInfo()->getTimestamp())); in truncateBigrams()276 const BigramEntry bigramEntry = bigramDictContent->getBigramEntry(entryPos); in truncateBigrams() local277 const BigramEntry invalidatedBigramEntry = bigramEntry.getInvalidatedEntry(); in truncateBigrams()
573 const BigramEntry bigramEntry = in getWordProperty() local575 hasNext = bigramEntry.hasNext(); in getWordProperty()576 const int word1TerminalId = bigramEntry.getTargetTerminalId(); in getWordProperty()585 const HistoricalInfo *const historicalInfo = bigramEntry.getHistoricalInfo(); in getWordProperty()586 const int rawBigramProbability = bigramEntry.hasHistoricalInfo() in getWordProperty()588 bigramEntry.getHistoricalInfo(), mHeaderPolicy) in getWordProperty()589 : bigramEntry.getProbability(); in getWordProperty()
37 BigramEntry(const BigramEntry& bigramEntry) in BigramEntry() argument38 : mHasNext(bigramEntry.mHasNext), mProbability(bigramEntry.mProbability), in BigramEntry()39 mHistoricalInfo(), mTargetTerminalId(bigramEntry.mTargetTerminalId) {} in BigramEntry()
133 const BigramEntry bigramEntry = getBigramEntryAndAdvancePosition(&readingPos); in copyBigramList() local134 hasNext = bigramEntry.hasNext(); in copyBigramList()138 if (!writeBigramEntryAndAdvancePosition(&bigramEntry, &writingPos)) { in copyBigramList()214 const BigramEntry bigramEntry = getBigramEntry(lastEntryPos).updateHasNextAndGetEntry( in runGCBigramList() local216 if (!writeBigramEntry(&bigramEntry, lastEntryPos)) { in runGCBigramList()