/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 282 final int bigramProbability = 150; in testAddBigramWords() local 287 addBigramWords(binaryDictionary, "aaa", "abb", bigramProbability); in testAddBigramWords() 288 addBigramWords(binaryDictionary, "aaa", "bcc", bigramProbability); in testAddBigramWords() 289 addBigramWords(binaryDictionary, "abb", "aaa", bigramProbability); in testAddBigramWords() 290 addBigramWords(binaryDictionary, "abb", "bcc", bigramProbability); in testAddBigramWords() 296 assertEquals(bigramProbability, getBigramProbability(binaryDictionary, "aaa", "abb")); in testAddBigramWords() 297 assertEquals(bigramProbability, getBigramProbability(binaryDictionary, "aaa", "bcc")); in testAddBigramWords() 298 assertEquals(bigramProbability, getBigramProbability(binaryDictionary, "abb", "aaa")); in testAddBigramWords() 299 assertEquals(bigramProbability, getBigramProbability(binaryDictionary, "abb", "bcc")); in testAddBigramWords() 318 addBigramWords(binaryDictionary, "abcde", "fghij", bigramProbability); in testAddBigramWords() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | multi_bigram_map.cpp | 66 int bigramProbability = NOT_A_PROBABILITY; in getBigramProbability() local 70 bigramProbability = bigramProbabilityIt->second; in getBigramProbability() 73 return structurePolicy->getProbability(unigramProbability, bigramProbability); in getBigramProbability() 93 const int bigramProbability = structurePolicy->getProbabilityOfWord(prevWordIds, nextWordId); in readBigramProbabilityFromBinaryDictionary() local 94 if (bigramProbability != NOT_A_PROBABILITY) { in readBigramProbabilityFromBinaryDictionary() 95 return bigramProbability; in readBigramProbabilityFromBinaryDictionary()
|
D | probability_utils.h | 41 const int unigramProbability, const int bigramProbability) { in computeProbabilityForBigram() argument 50 + static_cast<int>(static_cast<float>(bigramProbability + 1) * stepSize); in computeProbabilityForBigram()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 308 const int bigramProbability = getProbabilityOfWord(prevWordIds, wordId); in getWordAttributesInContext() local 309 if (bigramProbability != NOT_A_PROBABILITY) { in getWordAttributesInContext() 310 return getWordAttributes(bigramProbability, ptNodeParams); in getWordAttributesInContext() 324 const int bigramProbability) const { in getProbability() 331 } else if (bigramProbability == NOT_A_PROBABILITY) { in getProbability() 335 bigramProbability); in getProbability()
|
D | patricia_trie_policy.h | 70 int getProbability(const int unigramProbability, const int bigramProbability) const;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/ |
D | ver4_patricia_trie_policy.cpp | 148 const int bigramProbability) const { in getProbability() 150 const int bigramConditionalProbability = bigramProbability; in getProbability() 222 const bool isInBeginningOfSentenceContext, const int bigramProbability) const { in getBigramConditionalProbability() 225 return bigramProbability; in getBigramConditionalProbability() 228 return std::min(MAX_PROBABILITY - prevWordUnigramProbability + bigramProbability, in getBigramConditionalProbability() 232 return bigramProbability; in getBigramConditionalProbability()
|
D | ver4_patricia_trie_policy.h | 97 int getProbability(const int unigramProbability, const int bigramProbability) const; 176 const bool isInBeginningOfSentenceContext, const int bigramProbability) const;
|
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/ |
D | language_model_dict_content_test.cpp | 96 const int bigramProbability = 20; in TEST() local 104 const ProbabilityEntry bigramProbabilityEntry(flag, bigramProbability); in TEST() 108 EXPECT_EQ(bigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId, in TEST()
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/interface/ |
D | dictionary_structure_with_buffer_policy.h | 64 virtual int getProbability(const int unigramProbability, const int bigramProbability) const = 0;
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/ |
D | ver4_patricia_trie_policy.h | 73 int getProbability(const int unigramProbability, const int bigramProbability) const { in getProbability() argument
|