Home
last modified time | relevance | path

Searched refs:probabilityEntry (Results 1 – 13 of 13) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dlanguage_model_dict_content_test.cpp35 const ProbabilityEntry probabilityEntry(flag, probability); in TEST() local
36 languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry); in TEST()
46 EXPECT_TRUE(languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry)); in TEST()
58 const ProbabilityEntry probabilityEntry(flag, &historicalInfo); in TEST() local
59 languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry); in TEST()
69 EXPECT_TRUE(languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry)); in TEST()
102 const ProbabilityEntry probabilityEntry(flag, probability); in TEST() local
103 languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry); in TEST()
105 languageModelDictContent.setProbabilityEntry(prevWordIds[0], &probabilityEntry); in TEST()
112 prevWordIds[1], &probabilityEntry); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dprobability_dict_content.cpp62 const ProbabilityEntry *const probabilityEntry) { in setProbabilityEntry() argument
83 return writeEntry(probabilityEntry, entryPos); in setProbabilityEntry()
90 const ProbabilityEntry probabilityEntry = getProbabilityEntry(i); in flushToFile() local
91 if (!probabilityDictContentToWrite.setProbabilityEntry(i, &probabilityEntry)) { in flushToFile()
108 const ProbabilityEntry probabilityEntry = in runGC() local
110 if (!setProbabilityEntry(it->second, &probabilityEntry)) { in runGC()
135 bool ProbabilityDictContent::writeEntry(const ProbabilityEntry *const probabilityEntry, in writeEntry() argument
139 if (!bufferToWrite->writeUintAndAdvancePosition(probabilityEntry->getFlags(), in writeEntry()
144 if (!bufferToWrite->writeUintAndAdvancePosition(probabilityEntry->getProbability(), in writeEntry()
150 const HistoricalInfo *const historicalInfo = probabilityEntry->getHistoricalInfo(); in writeEntry()
Dprobability_entry.h37 ProbabilityEntry(const ProbabilityEntry &probabilityEntry) in ProbabilityEntry() argument
38 : mFlags(probabilityEntry.mFlags), mProbability(probabilityEntry.mProbability), in ProbabilityEntry()
39 mHistoricalInfo(probabilityEntry.mHistoricalInfo) {} in ProbabilityEntry()
Dprobability_dict_content.h52 bool setProbabilityEntry(const int terminalId, const ProbabilityEntry *const probabilityEntry);
66 bool writeEntry(const ProbabilityEntry *const probabilityEntry, const int entryPos);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp71 const ProbabilityEntry probabilityEntry = in getWordAttributes() local
75 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordAttributes()
105 probability = probabilityEntry.getProbability(); in getWordAttributes()
132 const int wordId, const ProbabilityEntry *const probabilityEntry) { in setNgramProbabilityEntry() argument
140 return mTrieMap.put(wordId, probabilityEntry->encode(mHasHistoricalInfo), bitmapEntryIndex); in setNgramProbabilityEntry()
180 const ProbabilityEntry probabilityEntry = in exportAllNgramEntriesRelatedToWordInner() local
182 if (probabilityEntry.isValid()) { in exportAllNgramEntriesRelatedToWordInner()
187 wordAttributes, probabilityEntry); in exportAllNgramEntriesRelatedToWordInner()
339 const ProbabilityEntry probabilityEntry = in updateAllProbabilityEntriesForGCInner() local
341 if (prevWordCount > 0 && probabilityEntry.isValid() in updateAllProbabilityEntriesForGCInner()
[all …]
Dlanguage_model_dict_content.h48 WordIdAndProbabilityEntry(const int wordId, const ProbabilityEntry &probabilityEntry) in WordIdAndProbabilityEntry() argument
49 : mWordId(wordId), mProbabilityEntry(probabilityEntry) {} in WordIdAndProbabilityEntry()
117 const WordAttributes &wordAttributes, const ProbabilityEntry &probabilityEntry) in DumppedFullEntryInfo() argument
119 mWordAttributes(wordAttributes), mProbabilityEntry(probabilityEntry) {} in DumppedFullEntryInfo()
160 bool setProbabilityEntry(const int wordId, const ProbabilityEntry *const probabilityEntry) { in setProbabilityEntry() argument
161 mGlobalCounters.addToTotalCount(probabilityEntry->getHistoricalInfo()->getCount()); in setProbabilityEntry()
162 return setNgramProbabilityEntry(WordIdArrayView(), wordId, probabilityEntry); in setProbabilityEntry()
173 const ProbabilityEntry *const probabilityEntry);
Dprobability_entry.h33 ProbabilityEntry(const ProbabilityEntry &probabilityEntry) in ProbabilityEntry() argument
34 : mFlags(probabilityEntry.mFlags), mProbability(probabilityEntry.mProbability), in ProbabilityEntry()
35 mHistoricalInfo(probabilityEntry.mHistoricalInfo) {} in ProbabilityEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp146 const ProbabilityEntry &probabilityEntry = entry.getProbabilityEntry(); in iterateNgramEntries() local
147 if (!probabilityEntry.isValid()) { in iterateNgramEntries()
151 if (probabilityEntry.hasHistoricalInfo()) { in iterateNgramEntries()
155 probability = probabilityEntry.getHistoricalInfo()->getCount() <= 1 ? in iterateNgramEntries()
158 probability = probabilityEntry.getProbability(); in iterateNgramEntries()
563 const ProbabilityEntry probabilityEntry = languageModelDictContent->getProbabilityEntry(wordId); in getWordProperty() local
564 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordProperty()
565 const UnigramProperty unigramProperty(probabilityEntry.representsBeginningOfSentence(), in getWordProperty()
Dver4_patricia_trie_node_writer.cpp210 const ProbabilityEntry probabilityEntry = in addNgramEntry() local
219 if (!probabilityEntry.isValid() && outAddedNewBigram) { in addNgramEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_reader.cpp74 const ProbabilityEntry probabilityEntry = in fetchPtNodeInfoFromBufferAndProcessMovedPtNode() local
76 if (probabilityEntry.hasHistoricalInfo()) { in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
78 probabilityEntry.getHistoricalInfo(), mHeaderPolicy); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
80 probability = probabilityEntry.getProbability(); in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_writing_helper.cpp215 const ProbabilityEntry probabilityEntry = in truncateUnigrams() local
217 const int probability = probabilityEntry.hasHistoricalInfo() ? in truncateUnigrams()
219 probabilityEntry.getHistoricalInfo(), mBuffers->getHeaderPolicy()) : in truncateUnigrams()
220 probabilityEntry.getProbability(); in truncateUnigrams()
222 probabilityEntry.getHistoricalInfo()->getTimestamp())); in truncateUnigrams()
Dver4_patricia_trie_node_writer.cpp157 const ProbabilityEntry probabilityEntry = createUpdatedEntryFrom(&originalProbabilityEntry, in updatePtNodeUnigramProperty() local
160 toBeUpdatedPtNodeParams->getTerminalId(), &probabilityEntry); in updatePtNodeUnigramProperty()
175 const ProbabilityEntry probabilityEntry = in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC() local
178 toBeUpdatedPtNodeParams->getTerminalId(), &probabilityEntry)) { in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
Dver4_patricia_trie_policy.cpp558 const ProbabilityEntry probabilityEntry = in getWordProperty() local
561 const HistoricalInfo *const historicalInfo = probabilityEntry.getHistoricalInfo(); in getWordProperty()