HomeSort by relevance Sort by last modified time
    Searched defs:prevWordIds (Results 1 - 6 of 6) sorted by null

  /packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
dictionary_utils.cpp 39 const WordIdArrayView prevWordIds = emptyNgramContext.getPrevWordIds(
42 DicNodeUtils::initAsRoot(dictionaryStructurePolicy, prevWordIds, &current.front());
dictionary.cpp 61 const NgramContext *const ngramContext, const WordIdArrayView prevWordIds,
64 : mNgramContext(ngramContext), mPrevWordIds(prevWordIds),
95 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(
98 NgramListenerForPrediction listener(ngramContext, prevWordIds, outSuggestionResults,
100 mDictionaryStructureWithBufferPolicy->iterateNgramEntries(prevWordIds, &listener);
123 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(
126 return getDictionaryStructurePolicy()->getProbabilityOfWord(prevWordIds, wordId);
  /packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
language_model_dict_content_test.cpp 100 const WordIdArrayView prevWordIds = WordIdArrayView::fromArray(prevWordIdArray);
105 languageModelDictContent.setProbabilityEntry(prevWordIds[0], &probabilityEntry);
106 languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1), wordId,
108 EXPECT_EQ(bigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
111 languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1),
112 prevWordIds[1], &probabilityEntry);
113 languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(2), wordId,
115 EXPECT_EQ(trigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
language_model_dict_content.cpp 42 const WordAttributes LanguageModelDictContent::getWordAttributes(const WordIdArrayView prevWordIds,
48 for (size_t i = 0; i < prevWordIds.size(); ++i) {
50 mTrieMap.get(prevWordIds[i], bitmapEntryIndices[i]).mNextLevelBitmapEntryIndex;
64 if (mustMatchAllPrevWords && prevWordIds.size() > static_cast<size_t>(i)) {
82 prevWordIds.skip(1 /* n */).limit(i - 1), prevWordIds[0]);
118 const WordIdArrayView prevWordIds, const int wordId) const {
119 const int bitmapEntryIndex = getBitmapEntryIndex(prevWordIds);
131 bool LanguageModelDictContent::setNgramProbabilityEntry(const WordIdArrayView prevWordIds,
136 const int bitmapEntryIndex = createAndGetBitmapEntryIndex(prevWordIds);
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
ver4_patricia_trie_policy.cpp 108 const WordIdArrayView prevWordIds, const int wordId,
113 return mBuffers->getLanguageModelDictContent()->getWordAttributes(prevWordIds, wordId,
117 int Ver4PatriciaTriePolicy::getProbabilityOfWord(const WordIdArrayView prevWordIds,
119 if (wordId == NOT_A_WORD_ID || prevWordIds.contains(NOT_A_WORD_ID)) {
123 mBuffers->getLanguageModelDictContent()->getWordAttributes(prevWordIds, wordId,
137 void Ver4PatriciaTriePolicy::iterateNgramEntries(const WordIdArrayView prevWordIds,
139 if (prevWordIds.empty()) {
143 for (size_t i = 1; i <= prevWordIds.size(); ++i) {
145 prevWordIds.limit(i))) {
293 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(this, &prevWordIdArray
    [all...]
  /packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
ver4_patricia_trie_policy.cpp 119 const WordIdArrayView prevWordIds, const int wordId,
128 prevWordIds, wordId, ptNodeParams.getProbability());
131 if (!prevWordIds.empty()) {
132 const int probability = getProbabilityOfWord(prevWordIds, wordId);
160 int Ver4PatriciaTriePolicy::getProbabilityOfWord(const WordIdArrayView prevWordIds,
170 if (prevWordIds.empty()) {
173 if (prevWordIds[0] == NOT_A_WORD_ID) {
177 mNodeReader.fetchPtNodeParamsInBufferFromPtNodePos(prevWordIds[0]);
198 void Ver4PatriciaTriePolicy::iterateNgramEntries(const WordIdArrayView prevWordIds,
200 if (prevWordIds.firstOrDefault(NOT_A_DICT_POS) == NOT_A_DICT_POS)
    [all...]

Completed in 74 milliseconds