Home
last modified time | relevance | path

Searched refs:unigramProperty (Results 1 – 20 of 20) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp32 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty, in addUnigramWord() argument
56 return reallocatePtNodeAndAddNewPtNodes(&ptNodeParams, j, unigramProperty, in addUnigramWord()
62 return setPtNodeProbability(&ptNodeParams, unigramProperty, outAddedNewUnigram); in addUnigramWord()
66 return createChildrenPtNodeArrayAndAChildPtNode(&ptNodeParams, unigramProperty, in addUnigramWord()
80 wordCodePoints.skip(readingHelper->getPrevTotalCodePointCount()), unigramProperty, in addUnigramWord()
127 const CodePointArrayView ptNodeCodePoints, const UnigramProperty *const unigramProperty, in createAndInsertNodeIntoPtNodeArray() argument
134 return createNewPtNodeArrayWithAChildPtNode(parentPos, ptNodeCodePoints, unigramProperty); in createAndInsertNodeIntoPtNodeArray()
138 const UnigramProperty *const unigramProperty, bool *const outAddedNewUnigram) { in setPtNodeProbability() argument
142 return mPtNodeWriter->updatePtNodeUnigramProperty(originalPtNodeParams, unigramProperty); in setPtNodeProbability()
149 unigramProperty->isNotAWord(), unigramProperty->isPossiblyOffensive(), in setPtNodeProbability()
[all …]
Ddynamic_pt_updating_helper.h43 const CodePointArrayView wordCodePoints, const UnigramProperty *const unigramProperty,
69 const CodePointArrayView ptNodeCodePoints, const UnigramProperty *const unigramProperty,
73 const UnigramProperty *const unigramProperty, bool *const outAddedNewUnigram);
76 const UnigramProperty *const unigramProperty,
81 const UnigramProperty *const unigramProperty);
84 const size_t overlappingCodePointCount, const UnigramProperty *const unigramProperty,
Dpt_node_writer.h59 const UnigramProperty *const unigramProperty) = 0;
72 const UnigramProperty *const unigramProperty, int *const ptNodeWritingPos) = 0;
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp36 const UnigramProperty &unigramProperty = wordProperty.getUnigramProperty(); in outputWordProperty() local
38 jboolean flags[] = {unigramProperty.isNotAWord(), unigramProperty.isPossiblyOffensive(), in outputWordProperty()
39 !ngrams.empty(), unigramProperty.hasShortcuts(), in outputWordProperty()
40 unigramProperty.representsBeginningOfSentence()}; in outputWordProperty()
42 const HistoricalInfo &historicalInfo = unigramProperty.getHistoricalInfo(); in outputWordProperty()
43 int probabilityInfo[] = {unigramProperty.getProbability(), historicalInfo.getTimestamp(), in outputWordProperty()
98 for (const auto &shortcut : unigramProperty.getShortcuts()) { in outputWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dprobability_entry.h51 ProbabilityEntry(const UnigramProperty *const unigramProperty) in ProbabilityEntry() argument
52 : mFlags(createFlags(unigramProperty->representsBeginningOfSentence(), in ProbabilityEntry()
53 unigramProperty->isNotAWord(), unigramProperty->isBlacklisted(), in ProbabilityEntry()
54 unigramProperty->isPossiblyOffensive())), in ProbabilityEntry()
55 mProbability(unigramProperty->getProbability()), in ProbabilityEntry()
56 mHistoricalInfo(unigramProperty->getHistoricalInfo()) {} in ProbabilityEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp180 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument
195 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry()
208 if (unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry()
216 if (mUpdatingHelper.addUnigramWord(&readingHelper, codePointArrayView, unigramProperty, in addUnigramEntry()
218 if (addedNewUnigram && !unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry()
221 if (unigramProperty->getShortcuts().size() > 0) { in addUnigramEntry()
230 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry()
385 const UnigramProperty unigramProperty(false /* representsBeginningOfSentence */, in updateEntriesForWordWithNgramContext() local
389 if (!addUnigramEntry(wordCodePoints, &unigramProperty)) { in updateEntriesForWordWithNgramContext()
565 const UnigramProperty unigramProperty(probabilityEntry.representsBeginningOfSentence(), in getWordProperty() local
[all …]
Dver4_patricia_trie_node_writer.cpp139 const UnigramProperty *const unigramProperty) { in updatePtNodeUnigramProperty() argument
145 const ProbabilityEntry probabilityEntryOfUnigramProperty = ProbabilityEntry(unigramProperty); in updatePtNodeUnigramProperty()
191 const PtNodeParams *const ptNodeParams, const UnigramProperty *const unigramProperty, in writeNewTerminalPtNodeAndAdvancePosition() argument
200 const ProbabilityEntry probabilityEntryOfUnigramProperty = ProbabilityEntry(unigramProperty); in writeNewTerminalPtNodeAndAdvancePosition()
Dver4_patricia_trie_node_writer.h58 const UnigramProperty *const unigramProperty);
73 const UnigramProperty *const unigramProperty, int *const ptNodeWritingPos);
Dver4_patricia_trie_policy.h90 const UnigramProperty *const unigramProperty);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp267 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument
282 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry()
295 if (unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry()
303 if (mUpdatingHelper.addUnigramWord(&readingHelper, codePointArrayView, unigramProperty, in addUnigramEntry()
305 if (addedNewUnigram && !unigramProperty->representsBeginningOfSentence()) { in addUnigramEntry()
308 if (unigramProperty->getShortcuts().size() > 0) { in addUnigramEntry()
316 for (const auto &shortcut : unigramProperty->getShortcuts()) { in addUnigramEntry()
458 const UnigramProperty unigramProperty(false /* representsBeginningOfSentence */, in updateEntriesForWordWithNgramContext() local
460 if (!addUnigramEntry(wordCodePoints, &unigramProperty)) { in updateEntriesForWordWithNgramContext()
617 const UnigramProperty unigramProperty(ptNodeParams.representsBeginningOfSentence(), in getWordProperty() local
[all …]
Dver4_patricia_trie_node_writer.cpp148 const UnigramProperty *const unigramProperty) { in updatePtNodeUnigramProperty() argument
158 unigramProperty); in updatePtNodeUnigramProperty()
219 const PtNodeParams *const ptNodeParams, const UnigramProperty *const unigramProperty, in writeNewTerminalPtNodeAndAdvancePosition() argument
229 &newProbabilityEntry, unigramProperty); in writeNewTerminalPtNodeAndAdvancePosition()
397 const UnigramProperty *const unigramProperty) const { in createUpdatedEntryFrom()
400 const HistoricalInfo &historicalInfoForUpdate = unigramProperty->getHistoricalInfo(); in createUpdatedEntryFrom()
404 unigramProperty->getProbability(), &historicalInfoForUpdate, mHeaderPolicy); in createUpdatedEntryFrom()
409 unigramProperty->getProbability()); in createUpdatedEntryFrom()
Dver4_patricia_trie_node_writer.h79 const UnigramProperty *const unigramProperty);
94 const UnigramProperty *const unigramProperty, int *const ptNodeWritingPos);
131 const UnigramProperty *const unigramProperty) const;
Dver4_patricia_trie_policy.h111 const UnigramProperty *const unigramProperty);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dword_property.h36 WordProperty(const std::vector<int> &&codePoints, const UnigramProperty &unigramProperty, in WordProperty() argument
38 : mCodePoints(std::move(codePoints)), mUnigramProperty(unigramProperty), in WordProperty()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp130 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument
131 if (unigramProperty->representsBeginningOfSentence() in addUnigramEntry()
138 return mDictionaryStructureWithBufferPolicy->addUnigramEntry(codePoints, unigramProperty); in addUnigramEntry()
Ddictionary.h85 const UnigramProperty *const unigramProperty);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp478 const UnigramProperty unigramProperty(ptNodeParams.representsBeginningOfSentence(), in getWordProperty() local
481 return WordProperty(wordCodePoints.toVector(), unigramProperty, ngrams); in getWordProperty()
Dpatricia_trie_policy.h84 const UnigramProperty *const unigramProperty) { in addUnigramEntry() argument
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h77 const UnigramProperty *const unigramProperty) = 0;
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp379 const UnigramProperty unigramProperty(isBeginningOfSentence, isNotAWord, in latinime_BinaryDictionary_addUnigramEntry() local
383 &unigramProperty); in latinime_BinaryDictionary_addUnigramEntry()