/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/ |
D | language_model_dict_content.h | 121 const WordIdArrayView getPrevWordIds() const { return WordIdArrayView(mPrevWordIds); } in getPrevWordIds() 153 const WordAttributes getWordAttributes(const WordIdArrayView prevWordIds, const int wordId, 157 return getNgramProbabilityEntry(WordIdArrayView(), wordId); in getProbabilityEntry() 162 return setNgramProbabilityEntry(WordIdArrayView(), wordId, probabilityEntry); in setProbabilityEntry() 166 return removeNgramProbabilityEntry(WordIdArrayView(), wordId); in removeProbabilityEntry() 169 ProbabilityEntry getNgramProbabilityEntry(const WordIdArrayView prevWordIds, 172 bool setNgramProbabilityEntry(const WordIdArrayView prevWordIds, const int wordId, 175 bool removeNgramProbabilityEntry(const WordIdArrayView prevWordIds, const int wordId); 177 EntryRange getProbabilityEntries(const WordIdArrayView prevWordIds) const; 199 bool updateAllEntriesOnInputWord(const WordIdArrayView prevWordIds, const int wordId, [all …]
|
D | language_model_dict_content.cpp | 42 const WordAttributes LanguageModelDictContent::getWordAttributes(const WordIdArrayView prevWordIds, in getWordAttributes() 118 const WordIdArrayView prevWordIds, const int wordId) const { in getNgramProbabilityEntry() 131 bool LanguageModelDictContent::setNgramProbabilityEntry(const WordIdArrayView prevWordIds, in setNgramProbabilityEntry() 143 bool LanguageModelDictContent::removeNgramProbabilityEntry(const WordIdArrayView prevWordIds, in removeNgramProbabilityEntry() 154 const WordIdArrayView prevWordIds) const { in getProbabilityEntries() 184 WordIdArrayView(*prevWordIds), wordId, true /* mustMatchAllPrevWords */, in exportAllNgramEntriesRelatedToWordInner() 220 bool LanguageModelDictContent::updateAllEntriesOnInputWord(const WordIdArrayView prevWordIds, in updateAllEntriesOnInputWord() 241 const WordIdArrayView limitedPrevWordIds = prevWordIds.limit(i + 1); in updateAllEntriesOnInputWord() 296 int LanguageModelDictContent::createAndGetBitmapEntryIndex(const WordIdArrayView prevWordIds) { in createAndGetBitmapEntryIndex() 318 int LanguageModelDictContent::getBitmapEntryIndex(const WordIdArrayView prevWordIds) const { in getBitmapEntryIndex() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/ |
D | dic_node_properties.h | 41 const uint16_t depth, const uint16_t leavingDepth, const WordIdArrayView prevWordIds) { in init() 52 void init(const int rootPtNodeArrayPos, const WordIdArrayView prevWordIds) { in init() 68 const WordIdArrayView prevWordIdArrayView = dicNodeProp->getPrevWordIds(); in initByCopy() 80 const WordIdArrayView prevWordIdArrayView = dicNodeProp->getPrevWordIds(); in init() 110 const WordIdArrayView getPrevWordIds() const { in getPrevWordIds() 111 return WordIdArrayView::fromArray(mPrevWordIds).limit(mPrevWordCount); in getPrevWordIds()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | multi_bigram_map.h | 43 const WordIdArrayView prevWordIds, const int nextWordId, const int unigramProbability); 61 const WordIdArrayView prevWordIds); 74 const WordIdArrayView prevWordIds); 78 const WordIdArrayView prevWordIds, const int nextWordId, const int unigramProbability);
|
D | multi_bigram_map.cpp | 38 const WordIdArrayView prevWordIds, const int nextWordId, in getBigramProbability() 59 const WordIdArrayView prevWordIds) { in init() 86 const WordIdArrayView prevWordIds) { in addBigramsForWord() 92 const WordIdArrayView prevWordIds, const int nextWordId, const int unigramProbability) { in readBigramProbabilityFromBinaryDictionary()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 108 const WordIdArrayView prevWordIds, const int wordId, in getWordAttributesInContext() 117 int Ver4PatriciaTriePolicy::getProbabilityOfWord(const WordIdArrayView prevWordIds, in getProbabilityOfWord() 137 void Ver4PatriciaTriePolicy::iterateNgramEntries(const WordIdArrayView prevWordIds, in iterateNgramEntries() 293 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(this, &prevWordIdArray, in addNgramEntry() 354 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(this, &prevWordIdArray, in removeNgramEntry() 400 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(this, &prevWordIdArray, in updateEntriesForWordWithNgramContext() 523 const WordIdArrayView prevWordIds = entry.getPrevWordIds(); in getWordProperty() 562 WordIdArrayView(), wordId, true /* mustMatchAllPrevWords */, mHeaderPolicy); in getWordProperty()
|
D | ver4_patricia_trie_policy.h | 69 const WordAttributes getWordAttributesInContext(const WordIdArrayView prevWordIds, 78 int getProbabilityOfWord(const WordIdArrayView prevWordIds, const int wordId) const; 80 void iterateNgramEntries(const WordIdArrayView prevWordIds,
|
D | ver4_patricia_trie_node_writer.h | 75 virtual bool addNgramEntry(const WordIdArrayView prevWordIds, const int wordId, 78 virtual bool removeNgramEntry(const WordIdArrayView prevWordIds, const int wordId);
|
D | ver4_patricia_trie_node_writer.cpp | 206 bool Ver4PatriciaTrieNodeWriter::addNgramEntry(const WordIdArrayView prevWordIds, const int wordId, in addNgramEntry() 225 bool Ver4PatriciaTrieNodeWriter::removeNgramEntry(const WordIdArrayView prevWordIds, in removeNgramEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/ |
D | dictionary.cpp | 61 const NgramContext *const ngramContext, const WordIdArrayView prevWordIds, in NgramListenerForPrediction() 95 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds( in getPredictions() 120 return getDictionaryStructurePolicy()->getProbabilityOfWord(WordIdArrayView(), wordId); in getNgramProbability() 123 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds( in getNgramProbability()
|
D | dictionary.h | 127 const WordIdArrayView prevWordIds, SuggestionResults *const suggestionResults, 135 const WordIdArrayView mPrevWordIds;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
D | dictionary_structure_with_buffer_policy.h | 60 virtual const WordAttributes getWordAttributesInContext(const WordIdArrayView prevWordIds, 66 virtual int getProbabilityOfWord(const WordIdArrayView prevWordIds, const int wordId) const = 0; 68 virtual void iterateNgramEntries(const WordIdArrayView prevWordIds,
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.h | 67 const WordAttributes getWordAttributesInContext(const WordIdArrayView prevWordIds, 72 int getProbabilityOfWord(const WordIdArrayView prevWordIds, const int wordId) const; 74 void iterateNgramEntries(const WordIdArrayView prevWordIds,
|
D | patricia_trie_policy.cpp | 294 const WordIdArrayView prevWordIds, const int wordId, in getWordAttributesInContext() 339 int PatriciaTriePolicy::getProbabilityOfWord(const WordIdArrayView prevWordIds, in getProbabilityOfWord() 368 void PatriciaTriePolicy::iterateNgramEntries(const WordIdArrayView prevWordIds, in iterateNgramEntries()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.h | 94 const WordAttributes getWordAttributesInContext(const WordIdArrayView prevWordIds, 99 int getProbabilityOfWord(const WordIdArrayView prevWordIds, const int wordId) const; 101 void iterateNgramEntries(const WordIdArrayView prevWordIds,
|
D | ver4_patricia_trie_policy.cpp | 119 const WordIdArrayView prevWordIds, const int wordId, in getWordAttributesInContext() 160 int Ver4PatriciaTriePolicy::getProbabilityOfWord(const WordIdArrayView prevWordIds, in getProbabilityOfWord() 198 void Ver4PatriciaTriePolicy::iterateNgramEntries(const WordIdArrayView prevWordIds, in iterateNgramEntries() 368 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(this, &prevWordIdArray, in addNgramEntry() 428 const WordIdArrayView prevWordIds = ngramContext->getPrevWordIds(this, &prevWordIdArray, in removeNgramEntry()
|
D | ver4_patricia_trie_node_writer.h | 96 virtual bool addNgramEntry(const WordIdArrayView prevWordIds, const int wordId, 99 virtual bool removeNgramEntry(const WordIdArrayView prevWordIds, const int wordId);
|
D | ver4_patricia_trie_node_writer.cpp | 234 bool Ver4PatriciaTrieNodeWriter::addNgramEntry(const WordIdArrayView prevWordIds, const int wordId, in addNgramEntry() 256 bool Ver4PatriciaTrieNodeWriter::removeNgramEntry(const WordIdArrayView prevWordIds, in removeNgramEntry()
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/ |
D | language_model_dict_content_test.cpp | 83 for (const auto& entry : languageModelDictContent.getProbabilityEntries(WordIdArrayView())) { in TEST() 100 const WordIdArrayView prevWordIds = WordIdArrayView::fromArray(prevWordIdArray); in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | ngram_context.h | 49 const WordIdArrayView getPrevWordIds( in getPrevWordIds() 56 return WordIdArrayView::fromArray(*prevWordIdBuffer).limit(mPrevWordCount); in getPrevWordIds()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | pt_node_writer.h | 74 virtual bool addNgramEntry(const WordIdArrayView prevWordIds, const int wordId, 77 virtual bool removeNgramEntry(const WordIdArrayView prevWordIds, const int wordId) = 0;
|
D | dynamic_pt_updating_helper.cpp | 96 const WordIdArrayView prevWordIds(prevWordTerminalIds, prevWordsPtNodePos.size()); in addNgramEntry() 113 const WordIdArrayView prevWordIds(prevWordTerminalIds, prevWordsPtNodePos.size()); in removeNgramEntry()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/session/ |
D | dic_traverse_session.h | 80 const WordIdArrayView getPrevWordIds() const { in getPrevWordIds() 81 return WordIdArrayView::fromArray(mPrevWordIdArray).limit(mPrevWordIdCount); in getPrevWordIds()
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/ |
D | dic_node.h | 108 void initAsRoot(const int rootPtNodeArrayPos, const WordIdArrayView prevWordIds) { in initAsRoot() 122 mDicNodeProperties.init(rootPtNodeArrayPos, WordIdArrayView::fromArray(newPrevWordIds)); in initAsRootWithPreviousWord() 205 const WordIdArrayView getPrevWordIds() const { in getPrevWordIds()
|
D | dic_node_utils.h | 34 const WordIdArrayView prevWordIds, DicNode *const newRootDicNode);
|