Home
last modified time | relevance | path

Searched refs:bigramProbability (Results 1 – 10 of 10) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java282 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/
Dmulti_bigram_map.cpp66 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()
Dprobability_utils.h41 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/
Dpatricia_trie_policy.cpp308 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()
Dpatricia_trie_policy.h70 int getProbability(const int unigramProbability, const int bigramProbability) const;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp148 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()
Dver4_patricia_trie_policy.h97 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/
Dlanguage_model_dict_content_test.cpp96 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/
Ddictionary_structure_with_buffer_policy.h64 virtual int getProbability(const int unigramProbability, const int bigramProbability) const = 0;
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.h73 int getProbability(const int unigramProbability, const int bigramProbability) const { in getProbability() argument