/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | BinaryDictionaryTests.java | 281 final int unigramProbability = 100; in testAddBigramWords() local 284 addUnigramWord(binaryDictionary, "aaa", unigramProbability); in testAddBigramWords() 285 addUnigramWord(binaryDictionary, "abb", unigramProbability); in testAddBigramWords() 286 addUnigramWord(binaryDictionary, "bcc", unigramProbability); in testAddBigramWords() 316 addUnigramWord(binaryDictionary, "abcde", unigramProbability); in testAddBigramWords() 317 addUnigramWord(binaryDictionary, "fghij", unigramProbability); in testAddBigramWords() 319 addUnigramWord(binaryDictionary, "fgh", unigramProbability); in testAddBigramWords() 320 addUnigramWord(binaryDictionary, "abc", unigramProbability); in testAddBigramWords() 321 addUnigramWord(binaryDictionary, "f", unigramProbability); in testAddBigramWords() 349 final int unigramProbability = random.nextInt(0xFF); in testRandomlyAddBigramWords() local [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
D | multi_bigram_map.cpp | 39 const int unigramProbability) { in getBigramProbability() argument 41 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in getBigramProbability() 46 unigramProbability); in getBigramProbability() 51 nextWordId, unigramProbability); in getBigramProbability() 54 nextWordId, unigramProbability); in getBigramProbability() 65 const int nextWordId, const int unigramProbability) const { in getBigramProbability() 73 return structurePolicy->getProbability(unigramProbability, bigramProbability); in getBigramProbability() 92 const WordIdArrayView prevWordIds, const int nextWordId, const int unigramProbability) { in readBigramProbabilityFromBinaryDictionary() argument 97 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in readBigramProbabilityFromBinaryDictionary()
|
D | probability_utils.h | 30 static AK_FORCE_INLINE int backoff(const int unigramProbability) { in backoff() argument 31 return unigramProbability; in backoff() 41 const int unigramProbability, const int bigramProbability) { in computeProbabilityForBigram() argument 47 const float stepSize = static_cast<float>(MAX_PROBABILITY - unigramProbability) in computeProbabilityForBigram() 49 return unigramProbability in computeProbabilityForBigram()
|
D | multi_bigram_map.h | 43 const WordIdArrayView prevWordIds, const int nextWordId, const int unigramProbability); 64 const int nextWordId, const int unigramProbability) const; 78 const WordIdArrayView prevWordIds, const int nextWordId, const int unigramProbability);
|
D | forgetting_curve_utils.cpp | 149 /* static */ int ForgettingCurveUtils::backoff(const int unigramProbability) { in backoff() argument 151 return unigramProbability; in backoff()
|
D | forgetting_curve_utils.h | 104 static int backoff(const int unigramProbability);
|
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/ |
D | patricia_trie_policy.cpp | 323 int PatriciaTriePolicy::getProbability(const int unigramProbability, in getProbability() argument 329 if (unigramProbability == NOT_A_PROBABILITY) { in getProbability() 332 return ProbabilityUtils::backoff(unigramProbability); in getProbability() 334 return ProbabilityUtils::computeProbabilityForBigram(unigramProbability, 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 | 147 int Ver4PatriciaTriePolicy::getProbability(const int unigramProbability, in getProbability() argument 151 if (unigramProbability == NOT_A_PROBABILITY) { in getProbability() 155 return ProbabilityUtils::backoff(unigramProbability); in getProbability()
|
D | ver4_patricia_trie_policy.h | 97 int getProbability(const int unigramProbability, const int bigramProbability) const;
|
/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
|