Home
last modified time | relevance | path

Searched refs:ngramProperty (Results 1 – 21 of 21) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp63 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) { in addNewEntry() argument
82 ngramProperty); in addNewEntry()
115 &newBigramEntry, ngramProperty); in addNewEntry()
141 &updatedBigramEntry, ngramProperty); in addNewEntry()
267 const NgramProperty *const ngramProperty) const { in createUpdatedBigramEntryFrom()
270 const HistoricalInfo &historicalInfoForUpdate = ngramProperty->getHistoricalInfo(); in createUpdatedBigramEntryFrom()
273 originalBigramEntry->getHistoricalInfo(), ngramProperty->getProbability(), in createUpdatedBigramEntryFrom()
277 return originalBigramEntry->updateProbabilityAndGetEntry(ngramProperty->getProbability()); in createUpdatedBigramEntryFrom()
Dver4_bigram_list_policy.h67 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
83 const NgramProperty *const ngramProperty) const;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DCombinedFormatUtils.java73 for (final NgramProperty ngramProperty : wordProperty.mNgrams) { in formatWordProperty()
74 builder.append(" " + NGRAM_TAG + "=" + ngramProperty.mTargetWord.mWord); in formatWordProperty()
76 builder.append(formatProbabilityInfo(ngramProperty.mTargetWord.mProbabilityInfo)); in formatWordProperty()
78 for (int i = 0; i < ngramProperty.mNgramContext.getPrevWordCount(); i++) { in formatWordProperty()
80 + ngramProperty.mNgramContext.getNthPrevWord(i + 1)); in formatWordProperty()
81 if (ngramProperty.mNgramContext.isNthPrevWordBeginningOfSentence(i + 1)) { in formatWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp55 for (const auto &ngramProperty : ngrams) { in outputWordProperty() local
56 const NgramContext *const ngramContext = ngramProperty.getNgramContext(); in outputWordProperty()
78 const std::vector<int> *const targetWordCodePoints = ngramProperty.getTargetCodePoints(); in outputWordProperty()
86 const HistoricalInfo &ngramHistoricalInfo = ngramProperty.getHistoricalInfo(); in outputWordProperty()
87 int bigramProbabilityInfo[] = {ngramProperty.getProbability(), in outputWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp347 bool Ver4PatriciaTriePolicy::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument
357 const NgramContext *const ngramContext = ngramProperty->getNgramContext(); in addNgramEntry()
362 if (ngramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry()
364 "length: %zd", ngramProperty->getTargetCodePoints()->size()); in addNgramEntry()
390 CodePointArrayView(*ngramProperty->getTargetCodePoints()), in addNgramEntry()
398 wordPos, ngramProperty, &addedNewBigram)) { in addNgramEntry()
466 const NgramProperty ngramProperty(*ngramContext, wordCodePoints.toVector(), probabilityForNgram, in updateEntriesForWordWithNgramContext() local
468 if (!addNgramEntry(&ngramProperty)) { in updateEntriesForWordWithNgramContext()
Dver4_patricia_trie_node_writer.cpp235 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) { in addNgramEntry() argument
236 if (!mBigramPolicy->addNewEntry(prevWordIds[0], wordId, ngramProperty, outAddedNewEntry)) { in addNgramEntry()
Dver4_patricia_trie_node_writer.h97 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
Dver4_patricia_trie_policy.h115 bool addNgramEntry(const NgramProperty *const ngramProperty);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dprobability_entry.h60 ProbabilityEntry(const NgramProperty *const ngramProperty) in ProbabilityEntry() argument
61 : mFlags(0), mProbability(ngramProperty->getProbability()), in ProbabilityEntry()
62 mHistoricalInfo(ngramProperty->getHistoricalInfo()) {} in ProbabilityEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp272 bool Ver4PatriciaTriePolicy::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument
282 const NgramContext *const ngramContext = ngramProperty->getNgramContext(); in addNgramEntry()
287 if (ngramProperty->getTargetCodePoints()->size() > MAX_WORD_LENGTH) { in addNgramEntry()
289 "length: %zd", ngramProperty->getTargetCodePoints()->size()); in addNgramEntry()
317 const int wordId = getWordId(CodePointArrayView(*ngramProperty->getTargetCodePoints()), in addNgramEntry()
323 if (mNodeWriter.addNgramEntry(prevWordIds, wordId, ngramProperty, &addedNewEntry)) { in addNgramEntry()
Dver4_patricia_trie_node_writer.cpp207 const NgramProperty *const ngramProperty, bool *const outAddedNewBigram) { in addNgramEntry() argument
212 const ProbabilityEntry probabilityEntryOfNgramProperty(ngramProperty); in addNgramEntry()
Dver4_patricia_trie_node_writer.h76 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
Dver4_patricia_trie_policy.h94 bool addNgramEntry(const NgramProperty *const ngramProperty);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp146 bool Dictionary::addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument
148 return mDictionaryStructureWithBufferPolicy->addNgramEntry(ngramProperty); in addNgramEntry()
Ddictionary.h89 bool addNgramEntry(const NgramProperty *const ngramProperty);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp85 const int wordPos, const NgramProperty *const ngramProperty, in addNgramEntry() argument
99 return mPtNodeWriter->addNgramEntry(prevWordIds, wordId, ngramProperty, outAddedNewEntry); in addNgramEntry()
Dpt_node_writer.h75 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry) = 0;
Ddynamic_pt_updating_helper.h49 const NgramProperty *const ngramProperty, bool *const outAddedNewEntry);
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionary.cpp412 const NgramProperty ngramProperty(ngramContext, in latinime_BinaryDictionary_addNgramEntry() local
415 return dictionary->addNgramEntry(&ngramProperty); in latinime_BinaryDictionary_addNgramEntry()
607 for (const NgramProperty &ngramProperty : wordProperty.getNgramProperties()) { in latinime_BinaryDictionary_migrateNative() local
608 if (!dictionaryStructureWithBufferPolicy->addNgramEntry(&ngramProperty)) { in latinime_BinaryDictionary_migrateNative()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/
Ddictionary_structure_with_buffer_policy.h83 virtual bool addNgramEntry(const NgramProperty *const ngramProperty) = 0;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.h96 bool addNgramEntry(const NgramProperty *const ngramProperty) { in addNgramEntry() argument