/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 74 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 …]
|
D | ver4_patricia_trie_writing_helper.h | 92 int getProbability() const { in getProbability() function 112 if (left.getProbability() != right.getProbability()) { in operator() 113 return left.getProbability() > right.getProbability(); in operator()
|
D | ver4_patricia_trie_writing_helper.cpp | 220 probabilityEntry.getProbability(); in truncateUnigrams() 267 bigramEntry.getProbability(); in truncateBigrams()
|
D | ver4_patricia_trie_node_writer.cpp | 404 unigramProperty->getProbability(), &historicalInfoForUpdate, mHeaderPolicy); in createUpdatedEntryFrom() 409 unigramProperty->getProbability()); in createUpdatedEntryFrom()
|
/packages/inputmethods/LatinIME/tools/dicttool/src/com/android/inputmethod/latin/dicttool/ |
D | Diff.java | 116 + word0Property.getProbability()); in diffWords() 120 if (word0Property.getProbability() != word1PtNode.getProbability()) { in diffWords() 122 + word0Property.getProbability() + " -> " in diffWords() 123 + word1PtNode.getProbability()); in diffWords() 147 + word1Property.getProbability()); in diffWords() 163 + attribute0.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny() 179 + attribute0.mWord + " " + attribute0.getProbability() + " -> " in hasAttributesDifferencesAndPrintThemIfAny() 180 + attribute1.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny() 189 + attribute0.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny() 201 + attribute1.getProbability()); in hasAttributesDifferencesAndPrintThemIfAny()
|
D | Info.java | 65 System.out.println(" Freq: " + ptNode.getProbability()); in showWordInfo() 78 " Bigram: " + bigram.mWord + " (" + bigram.getProbability() + ")"); in showWordInfo()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 304 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/ |
D | WordProperty.java | 132 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()
|
D | WeightedString.java | 42 public int getProbability() { in getProbability() method in WeightedString
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/ |
D | language_model_dict_content_test.cpp | 40 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()
|
D | probability_entry_test.cpp | 36 EXPECT_EQ(probability, decodedEntry.getProbability()); in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/ |
D | dynamic_pt_updating_helper.cpp | 151 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/utils/ |
D | multi_bigram_map.cpp | 41 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()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.cpp | 128 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/dictionary/structure/v4/content/ |
D | probability_entry.h | 55 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/utils/ |
D | jni_data_utils.cpp | 43 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/dictionary/structure/backward/v402/bigram/ |
D | ver4_bigram_list_policy.cpp | 54 *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/ |
D | dictionary.cpp | 84 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/suggest/core/dicnode/ |
D | dic_node_utils.cpp | 77 if (wordAttributes.getProbability() == NOT_A_PROBABILITY in getBigramNodeImprobability() 83 const float cost = static_cast<float>(MAX_PROBABILITY - wordAttributes.getProbability()) in getBigramNodeImprobability()
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/makedict/ |
D | Ver2DictEncoder.java | 258 final int unigramFrequencyForThisWord = target.getProbability(); in writeBigrams() 262 offset, bigram.getProbability(), unigramFrequencyForThisWord, bigram.mWord); in writeBigrams() 275 writeFrequency(ptNode.getProbability()); in writePtNode()
|
D | Ver4DictEncoder.java | 77 if (!binaryDict.addUnigramEntry(wordProperty.mWord, wordProperty.getProbability(), in writeDictionary() 96 word1.getProbability(), 0 /* timestamp */)) { in writeDictionary()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/ |
D | unigram_property.h | 39 int getProbability() const { in getProbability() function 112 int getProbability() const { in getProbability() function
|
D | word_attributes.h | 34 int getProbability() const { in getProbability() function
|
D | ngram_property.h | 43 int getProbability() const { in getProbability() function
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/ |
D | bigram_dict_content.cpp | 107 if (!bigramListBuffer->writeUintAndAdvancePosition(bigramEntryToWrite->getProbability(), in writeBigramEntryAndAdvancePosition() 110 bigramEntryToWrite->getProbability()); in writeBigramEntryAndAdvancePosition()
|