Home
last modified time | relevance | path

Searched refs:WordIdArrayView (Results 1 – 25 of 28) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.h121 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 …]
Dlanguage_model_dict_content.cpp42 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/
Ddic_node_properties.h41 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/
Dmulti_bigram_map.h43 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);
Dmulti_bigram_map.cpp38 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/
Dver4_patricia_trie_policy.cpp108 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()
Dver4_patricia_trie_policy.h69 const WordAttributes getWordAttributesInContext(const WordIdArrayView prevWordIds,
78 int getProbabilityOfWord(const WordIdArrayView prevWordIds, const int wordId) const;
80 void iterateNgramEntries(const WordIdArrayView prevWordIds,
Dver4_patricia_trie_node_writer.h75 virtual bool addNgramEntry(const WordIdArrayView prevWordIds, const int wordId,
78 virtual bool removeNgramEntry(const WordIdArrayView prevWordIds, const int wordId);
Dver4_patricia_trie_node_writer.cpp206 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/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h60 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/suggest/core/dictionary/
Ddictionary.cpp61 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()
Ddictionary.h127 const WordIdArrayView prevWordIds, SuggestionResults *const suggestionResults,
135 const WordIdArrayView mPrevWordIds;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h67 const WordAttributes getWordAttributesInContext(const WordIdArrayView prevWordIds,
72 int getProbabilityOfWord(const WordIdArrayView prevWordIds, const int wordId) const;
74 void iterateNgramEntries(const WordIdArrayView prevWordIds,
Dpatricia_trie_policy.cpp294 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/
Dver4_patricia_trie_policy.h94 const WordAttributes getWordAttributesInContext(const WordIdArrayView prevWordIds,
99 int getProbabilityOfWord(const WordIdArrayView prevWordIds, const int wordId) const;
101 void iterateNgramEntries(const WordIdArrayView prevWordIds,
Dver4_patricia_trie_policy.cpp119 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()
Dver4_patricia_trie_node_writer.h96 virtual bool addNgramEntry(const WordIdArrayView prevWordIds, const int wordId,
99 virtual bool removeNgramEntry(const WordIdArrayView prevWordIds, const int wordId);
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dlanguage_model_dict_content_test.cpp83 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/
Dngram_context.h49 const WordIdArrayView getPrevWordIds( in getPrevWordIds()
56 return WordIdArrayView::fromArray(*prevWordIdBuffer).limit(mPrevWordCount); in getPrevWordIds()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpt_node_writer.h74 virtual bool addNgramEntry(const WordIdArrayView prevWordIds, const int wordId,
77 virtual bool removeNgramEntry(const WordIdArrayView prevWordIds, const int wordId) = 0;
Ddynamic_pt_updating_helper.cpp96 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/
Ddic_traverse_session.h80 const WordIdArrayView getPrevWordIds() const { in getPrevWordIds()
81 return WordIdArrayView::fromArray(mPrevWordIdArray).limit(mPrevWordIdCount); in getPrevWordIds()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node.h108 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()
Ddic_node_utils.h34 const WordIdArrayView prevWordIds, DicNode *const newRootDicNode);
Ddic_node_utils.cpp31 const WordIdArrayView prevWordIds, DicNode *const newRootDicNode) { in initAsRoot()

12