Home
last modified time | relevance | path

Searched refs:prevWordsPtNodePos (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp84 bool DynamicPtUpdatingHelper::addNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, in addNgramEntry() argument
87 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() argument
104 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 …]
Ddynamic_pt_updating_helper.h48 bool addNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, const int wordPos,
53 bool removeNgramEntry(const PtNodePosArrayView prevWordsPtNodePos, const int wordPos);