Searched refs:prevWordsPtNodePos (Results 1 – 2 of 2) sorted by relevance
84 bool DynamicPtUpdatingHelper::addNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, in addNgramEntry() argument87 if (prevWordsPtNodePos.empty()) { in addNgramEntry()90 ASSERT(prevWordsPtNodePos.size() <= MAX_PREV_WORD_COUNT_FOR_N_GRAM); in addNgramEntry()92 for (size_t i = 0; i < prevWordsPtNodePos.size(); ++i) { in addNgramEntry()94 prevWordsPtNodePos[i]).getTerminalId(); in addNgramEntry()96 const WordIdArrayView prevWordIds(prevWordTerminalIds, prevWordsPtNodePos.size()); in addNgramEntry()102 bool DynamicPtUpdatingHelper::removeNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, in removeNgramEntry() argument104 if (prevWordsPtNodePos.empty()) { in removeNgramEntry()107 ASSERT(prevWordsPtNodePos.size() <= MAX_PREV_WORD_COUNT_FOR_N_GRAM); in removeNgramEntry()109 for (size_t i = 0; i < prevWordsPtNodePos.size(); ++i) { in removeNgramEntry()[all …]
48 bool addNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, const int wordPos,53 bool removeNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, const int wordPos);