Home
last modified time | relevance | path

Searched refs:getProbability (Results 1 – 25 of 47) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp74 isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY; in createAndGetAllChildDicNodes()
128 prevWordIds, wordId, ptNodeParams.getProbability()); in getWordAttributesInContext()
137 return getWordAttributes(getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY), in getWordAttributesInContext()
144 ptNodeParams.getProbability() == 0); in getWordAttributes()
147 int Ver4PatriciaTriePolicy::getProbability(const int unigramProbability, in getProbability() function in latinime::backward::v402::Ver4PatriciaTriePolicy
171 return getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY); in getProbabilityOfWord()
179 return getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY); in getProbabilityOfWord()
187 && bigramsIt.getProbability() != NOT_A_PROBABILITY) { in getProbabilityOfWord()
189 prevWordPtNodeParams.getProbability(), in getProbabilityOfWord()
191 bigramsIt.getProbability()); in getProbabilityOfWord()
[all …]
Dver4_patricia_trie_writing_helper.h92 int getProbability() const { in getProbability() function
112 if (left.getProbability() != right.getProbability()) { in operator()
113 return left.getProbability() > right.getProbability(); in operator()
Dver4_patricia_trie_writing_helper.cpp220 probabilityEntry.getProbability(); in truncateUnigrams()
267 bigramEntry.getProbability(); in truncateBigrams()
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/
DDiff.java116 + word0Property.getProbability()); in diffWords()
120 if (word0Property.getProbability() != word1PtNode.getProbability()) { in diffWords()
122 + word0Property.getProbability() + " -> " in diffWords()
123 + word1PtNode.getProbability()); in diffWords()
150 + word1Property.getProbability()); in diffWords()
166 + attribute0.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny()
182 + attribute0.mWord + " " + attribute0.getProbability() + " -> " in hasAttributesDifferencesAndPrintThemIfAny()
183 + attribute1.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny()
192 + attribute0.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny()
204 + attribute1.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny()
DInfo.java55 == shortcutTarget.getProbability()) { in showInfo()
74 System.out.println(" Freq: " + ptNode.getProbability()); in showWordInfo()
88 == shortcutTarget.getProbability() ? in showWordInfo()
89 "whitelist" : shortcutTarget.getProbability()) + ")"); in showWordInfo()
98 " Bigram: " + bigram.mWord + " (" + bigram.getProbability() + ")"); in showWordInfo()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp304 prevWordIds, wordId, ptNodeParams.getProbability()); in getWordAttributesInContext()
313 return getWordAttributes(getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY), in getWordAttributesInContext()
323 int PatriciaTriePolicy::getProbability(const int unigramProbability, in getProbability() function in latinime::PatriciaTriePolicy
359 && bigramsIt.getProbability() != NOT_A_PROBABILITY) { in getProbabilityOfWord()
360 return getProbability(ptNodeParams.getProbability(), bigramsIt.getProbability()); in getProbabilityOfWord()
365 return getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY); in getProbabilityOfWord()
378 listener->onVisitEntry(bigramsIt.getProbability(), in iterateNgramEntries()
450 const int probability = getProbability(word1Probability, bigramsIt.getProbability()); in getWordProperty()
480 ptNodeParams.getProbability(), HistoricalInfo(), std::move(shortcuts)); in getWordProperty()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/makedict/
DWordProperty.java132 public int getProbability() { in getProbability() method in WordProperty
154 if (getProbability() < w.getProbability()) return 1; in compareTo()
155 if (getProbability() > w.getProbability()) return -1; in compareTo()
194 return getProbability() != Dictionary.NOT_A_PROBABILITY; in isValid()
DWeightedString.java42 public int getProbability() { in getProbability() method in WeightedString
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dlanguage_model_dict_content_test.cpp40 EXPECT_EQ(probability, entry.getProbability()); in TEST()
85 EXPECT_EQ(originalEntry.getProbability(), entry.getProbabilityEntry().getProbability()); in TEST()
109 false /* mustMatchAllPrevWords */, nullptr /* headerPolicy */).getProbability()); in TEST()
116 false /* mustMatchAllPrevWords */, nullptr /* headerPolicy */).getProbability()); in TEST()
Dprobability_entry_test.cpp36 EXPECT_EQ(probability, decodedEntry.getProbability()); in TEST()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmulti_bigram_map.cpp41 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in getBigramProbability()
73 return structurePolicy->getProbability(unigramProbability, bigramProbability); in getBigramProbability()
97 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in readBigramProbabilityFromBinaryDictionary()
Dbinary_dictionary_bigrams_iterator.h51 AK_FORCE_INLINE int getProbability() const { in getProbability() function
Dforgetting_curve_utils.h66 int getProbability(const int tableId, const int level, in getProbability() function
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Ddynamic_pt_updating_helper.cpp151 originalPtNodeParams->getCodePointArrayView(), unigramProperty->getProbability())); in setPtNodeProbability()
185 unigramProperty->getProbability())); in createNewPtNodeArrayWithAChildPtNode()
228 firstPtNodeCodePoints, unigramProperty->getProbability())); in reallocatePtNodeAndAddNewPtNodes()
247 reallocatingPtNodeParams->getProbability())); in reallocatePtNodeAndAddNewPtNodes()
256 unigramProperty->getProbability())); in reallocatePtNodeAndAddNewPtNodes()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dprobability_entry.h55 mProbability(unigramProperty->getProbability()), in ProbabilityEntry()
61 : mFlags(0), mProbability(ngramProperty->getProbability()), in ProbabilityEntry()
76 int getProbability() const { in getProbability() function
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp128 return wordAttributes.getProbability(); in getProbabilityOfWord()
158 probability = probabilityEntry.getProbability(); in iterateNgramEntries()
233 shortcut.getProbability())) { in addUnigramEntry()
236 shortcut.getProbability()); in addUnigramEntry()
541 entry.getWordAttributes().getProbability(), *historicalInfo); in getWordProperty()
567 wordAttributes.isPossiblyOffensive(), wordAttributes.getProbability(), in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Djni_data_utils.cpp43 int probabilityInfo[] = {unigramProperty.getProbability(), historicalInfo.getTimestamp(), in outputWordProperty()
87 int bigramProbabilityInfo[] = {ngramProperty.getProbability(), in outputWordProperty()
107 shortcut.getProbability()); in outputWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_utils.cpp77 if (wordAttributes.getProbability() == NOT_A_PROBABILITY in getBigramNodeImprobability()
83 const float cost = static_cast<float>(MAX_PROBABILITY - wordAttributes.getProbability()) in getBigramNodeImprobability()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp54 *outProbability = bigramEntry.getProbability(); in getNextBigram()
273 originalBigramEntry->getHistoricalInfo(), ngramProperty->getProbability(), in createUpdatedBigramEntryFrom()
277 return originalBigramEntry->updateProbabilityAndGetEntry(ngramProperty->getProbability()); in createUpdatedBigramEntryFrom()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp84 if (wordAttributes.getProbability() == NOT_A_PROBABILITY) { in onVisitEntry()
88 wordAttributes.getProbability()); in onVisitEntry()
103 int Dictionary::getProbability(const CodePointArrayView codePoints) const { in getProbability() function in latinime::Dictionary
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dunigram_property.h39 int getProbability() const { in getProbability() function
112 int getProbability() const { in getProbability() function
Dword_attributes.h34 int getProbability() const { in getProbability() function
Dngram_property.h43 int getProbability() const { in getProbability() function
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dbigram_dict_content.cpp107 if (!bigramListBuffer->writeUintAndAdvancePosition(bigramEntryToWrite->getProbability(), in writeBigramEntryAndAdvancePosition()
110 bigramEntryToWrite->getProbability()); in writeBigramEntryAndAdvancePosition()
Dprobability_entry.h71 int getProbability() const { in getProbability() function

12