Home
last modified time | relevance | path

Searched refs:unigramProbability (Results 1 – 12 of 12) sorted by relevance

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java281 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/
Dmulti_bigram_map.cpp39 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()
Dprobability_utils.h30 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()
Dmulti_bigram_map.h43 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);
Dforgetting_curve_utils.cpp149 /* static */ int ForgettingCurveUtils::backoff(const int unigramProbability) { in backoff() argument
151 return unigramProbability; in backoff()
Dforgetting_curve_utils.h104 static int backoff(const int unigramProbability);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp323 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()
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.cpp147 int Ver4PatriciaTriePolicy::getProbability(const int unigramProbability, in getProbability() argument
151 if (unigramProbability == NOT_A_PROBABILITY) { in getProbability()
155 return ProbabilityUtils::backoff(unigramProbability); in getProbability()
Dver4_patricia_trie_policy.h97 int getProbability(const int unigramProbability, const int bigramProbability) const;
/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