Home
last modified time | relevance | path

Searched refs:ProbabilityEntry (Results 1 – 15 of 15) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.cpp58 const ProbabilityEntry unigramProbabilityEntry = getProbabilityEntry(wordId); in getWordAttributes()
71 const ProbabilityEntry probabilityEntry = in getWordAttributes()
72 ProbabilityEntry::decode(result.mValue, mHasHistoricalInfo); in getWordAttributes()
81 const ProbabilityEntry prevWordProbabilityEntry = getNgramProbabilityEntry( in getWordAttributes()
117 ProbabilityEntry LanguageModelDictContent::getNgramProbabilityEntry( in getNgramProbabilityEntry()
121 return ProbabilityEntry(); in getNgramProbabilityEntry()
126 return ProbabilityEntry(); in getNgramProbabilityEntry()
128 return ProbabilityEntry::decode(result.mValue, mHasHistoricalInfo); in getNgramProbabilityEntry()
132 const int wordId, const ProbabilityEntry *const probabilityEntry) { in setNgramProbabilityEntry()
180 const ProbabilityEntry probabilityEntry = in exportAllNgramEntriesRelatedToWordInner()
[all …]
Dprobability_entry.h31 class ProbabilityEntry {
33 ProbabilityEntry(const ProbabilityEntry &probabilityEntry) in ProbabilityEntry() function
38 ProbabilityEntry() in ProbabilityEntry() function
43 ProbabilityEntry(const int flags, const int probability) in ProbabilityEntry() function
47 ProbabilityEntry(const int flags, const HistoricalInfo *const historicalInfo) in ProbabilityEntry() function
51 ProbabilityEntry(const UnigramProperty *const unigramProperty) in ProbabilityEntry() function
60 ProbabilityEntry(const NgramProperty *const ngramProperty) in ProbabilityEntry() function
116 static ProbabilityEntry decode(const uint64_t encodedEntry, const bool hasHistoricalInfo) { in decode()
133 return ProbabilityEntry(flags, &historicalInfo); in decode()
140 return ProbabilityEntry(flags, probability); in decode()
[all …]
Dlanguage_model_dict_content.h48 WordIdAndProbabilityEntry(const int wordId, const ProbabilityEntry &probabilityEntry) in WordIdAndProbabilityEntry()
52 const ProbabilityEntry getProbabilityEntry() const { return mProbabilityEntry; } in getProbabilityEntry()
59 const ProbabilityEntry mProbabilityEntry;
72 result.key(), ProbabilityEntry::decode(result.value(), mHasHistoricalInfo));
117 const WordAttributes &wordAttributes, const ProbabilityEntry &probabilityEntry) in DumppedFullEntryInfo()
124 const ProbabilityEntry &getProbabilityEntry() const { return mProbabilityEntry; } in getProbabilityEntry()
132 const ProbabilityEntry mProbabilityEntry;
156 ProbabilityEntry getProbabilityEntry(const int wordId) const { in getProbabilityEntry()
160 bool setProbabilityEntry(const int wordId, const ProbabilityEntry *const probabilityEntry) { in setProbabilityEntry()
169 ProbabilityEntry getNgramProbabilityEntry(const WordIdArrayView prevWordIds,
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dprobability_entry.h35 class ProbabilityEntry {
37 ProbabilityEntry(const ProbabilityEntry &probabilityEntry) in ProbabilityEntry() function
42 ProbabilityEntry() in ProbabilityEntry() function
46 ProbabilityEntry(const int flags, const int probability) in ProbabilityEntry() function
50 ProbabilityEntry(const int flags, const int probability, in ProbabilityEntry() function
54 const ProbabilityEntry createEntryWithUpdatedProbability(const int probability) const { in createEntryWithUpdatedProbability()
55 return ProbabilityEntry(mFlags, probability, &mHistoricalInfo); in createEntryWithUpdatedProbability()
58 const ProbabilityEntry createEntryWithUpdatedHistoricalInfo( in createEntryWithUpdatedHistoricalInfo()
60 return ProbabilityEntry(mFlags, mProbability, historicalInfo); in createEntryWithUpdatedHistoricalInfo()
81 DISALLOW_ASSIGNMENT_OPERATOR(ProbabilityEntry);
Dprobability_dict_content.cpp35 const ProbabilityEntry ProbabilityDictContent::getProbabilityEntry(const int terminalId) const { in getProbabilityEntry()
38 return ProbabilityEntry(0 /* flags */, NOT_A_PROBABILITY); in getProbabilityEntry()
55 return ProbabilityEntry(flags, probability, &historicalInfo); in getProbabilityEntry()
57 return ProbabilityEntry(flags, probability); in getProbabilityEntry()
62 const ProbabilityEntry *const probabilityEntry) { in setProbabilityEntry()
68 ProbabilityEntry placeholderEntry; in setProbabilityEntry()
90 const ProbabilityEntry probabilityEntry = getProbabilityEntry(i); in flushToFile()
108 const ProbabilityEntry probabilityEntry = in runGC()
135 bool ProbabilityDictContent::writeEntry(const ProbabilityEntry *const probabilityEntry, in writeEntry()
Dprobability_dict_content.h37 class ProbabilityEntry; variable
50 const ProbabilityEntry getProbabilityEntry(const int terminalId) const;
52 bool setProbabilityEntry(const int terminalId, const ProbabilityEntry *const probabilityEntry);
66 bool writeEntry(const ProbabilityEntry *const probabilityEntry, const int entryPos);
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dlanguage_model_dict_content_test.cpp35 const ProbabilityEntry probabilityEntry(flag, probability); in TEST()
37 const ProbabilityEntry entry = in TEST()
58 const ProbabilityEntry probabilityEntry(flag, &historicalInfo); in TEST()
60 const ProbabilityEntry entry = languageModelDictContent.getProbabilityEntry(wordId); in TEST()
76 const ProbabilityEntry originalEntry(0xFC, 100); in TEST()
102 const ProbabilityEntry probabilityEntry(flag, probability); in TEST()
104 const ProbabilityEntry bigramProbabilityEntry(flag, bigramProbability); in TEST()
110 const ProbabilityEntry trigramProbabilityEntry(flag, trigramProbability); in TEST()
Dprobability_entry_test.cpp30 const ProbabilityEntry entry(flag, probability); in TEST()
32 const ProbabilityEntry decodedEntry = in TEST()
33 ProbabilityEntry::decode(encodedEntry, false /* hasHistoricalInfo */); in TEST()
45 const ProbabilityEntry entry(flag, &historicalInfo); in TEST()
49 const ProbabilityEntry decodedEntry = in TEST()
50 ProbabilityEntry::decode(encodedEntry, true /* hasHistoricalInfo */); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_node_writer.cpp154 const ProbabilityEntry originalProbabilityEntry = in updatePtNodeUnigramProperty()
157 const ProbabilityEntry probabilityEntry = createUpdatedEntryFrom(&originalProbabilityEntry, in updatePtNodeUnigramProperty()
169 const ProbabilityEntry originalProbabilityEntry = in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
175 const ProbabilityEntry probabilityEntry = in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
227 ProbabilityEntry newProbabilityEntry; in writeNewTerminalPtNodeAndAdvancePosition()
228 const ProbabilityEntry probabilityEntryToWrite = createUpdatedEntryFrom( in writeNewTerminalPtNodeAndAdvancePosition()
395 const ProbabilityEntry Ver4PatriciaTrieNodeWriter::createUpdatedEntryFrom( in createUpdatedEntryFrom()
396 const ProbabilityEntry *const originalProbabilityEntry, in createUpdatedEntryFrom()
434 const ProbabilityEntry probabilityEntryToWrite = in suppressUnigramEntry()
435 ProbabilityEntry().createEntryWithUpdatedHistoricalInfo(&suppressedHistorycalInfo); in suppressUnigramEntry()
Dver4_patricia_trie_node_writer.h129 const ProbabilityEntry createUpdatedEntryFrom(
130 const ProbabilityEntry *const originalProbabilityEntry,
Dver4_patricia_trie_node_reader.cpp74 const ProbabilityEntry probabilityEntry = in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
Dver4_patricia_trie_writing_helper.cpp215 const ProbabilityEntry probabilityEntry = in truncateUnigrams()
Dver4_patricia_trie_policy.cpp558 const ProbabilityEntry probabilityEntry = in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_node_writer.cpp145 const ProbabilityEntry probabilityEntryOfUnigramProperty = ProbabilityEntry(unigramProperty); in updatePtNodeUnigramProperty()
156 const ProbabilityEntry originalProbabilityEntry = in updatePtNodeProbabilityAndGetNeedsToKeepPtNodeAfterGC()
199 ProbabilityEntry newProbabilityEntry; in writeNewTerminalPtNodeAndAdvancePosition()
200 const ProbabilityEntry probabilityEntryOfUnigramProperty = ProbabilityEntry(unigramProperty); in writeNewTerminalPtNodeAndAdvancePosition()
210 const ProbabilityEntry probabilityEntry = in addNgramEntry()
212 const ProbabilityEntry probabilityEntryOfNgramProperty(ngramProperty); in addNgramEntry()
Dver4_patricia_trie_policy.cpp146 const ProbabilityEntry &probabilityEntry = entry.getProbabilityEntry(); in iterateNgramEntries()
536 const ProbabilityEntry ngramProbabilityEntry = entry.getProbabilityEntry(); in getWordProperty()
563 const ProbabilityEntry probabilityEntry = languageModelDictContent->getProbabilityEntry(wordId); in getWordProperty()