HomeSort by relevance Sort by last modified time
    Searched refs:unigramProbability (Results 1 - 15 of 15) sorted by null

  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
probability_utils.h 28 static AK_FORCE_INLINE int backoff(const int unigramProbability) {
29 return unigramProbability;
34 // return unigramProbability > 8 ?
35 // unigramProbability - 8 : (0 == unigramProbability ? 0 : 8);
39 const int unigramProbability, const int bigramProbability) {
40 // We divide the range [unigramProbability..255] in 16.5 steps - in other words, we want
45 const float stepSize = static_cast<float>(MAX_PROBABILITY - unigramProbability)
47 return unigramProbability
forgetting_curve_utils.cpp 56 const int unigramProbability = decodeProbability(encodedUnigramProbability);
58 return min(max(unigramProbability, bigramProbability), MAX_COMPUTED_PROBABILITY);
135 /* static */ int ForgettingCurveUtils::backoff(const int unigramProbability) {
136 if (unigramProbability == NOT_A_PROBABILITY) {
139 return max(unigramProbability - 8, 0);
forgetting_curve_utils.h 97 static int backoff(const int unigramProbability);
  /packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
multi_bigram_map.h 41 const int wordPosition, const int nextWordPosition, const int unigramProbability) {
46 unigramProbability);
51 nextWordPosition, unigramProbability);
54 nextWordPosition, unigramProbability);
86 const int nextWordPosition, const int unigramProbability) const {
95 return structurePolicy->getProbability(unigramProbability, bigramProbability);
113 const int nextWordPosition, const int unigramProbability) {
125 return structurePolicy->getProbability(unigramProbability, bigramProbability);
bigram_dictionary.cpp 113 int unigramProbability = 0;
124 MAX_WORD_LENGTH, bigramBuffer, &unigramProbability);
134 unigramProbability, bigramsIt.getProbability());
  /packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
BinaryDictionaryTests.java 170 final int unigramProbability = 100;
173 binaryDictionary.addUnigramWord("aaa", unigramProbability);
174 binaryDictionary.addUnigramWord("abb", unigramProbability);
175 binaryDictionary.addUnigramWord("bcc", unigramProbability);
181 final int probability = binaryDictionary.calculateProbability(unigramProbability,
193 final int updatedProbability = binaryDictionary.calculateProbability(unigramProbability,
208 binaryDictionary.addUnigramWord("abcde", unigramProbability);
209 binaryDictionary.addUnigramWord("fghij", unigramProbability);
211 binaryDictionary.addUnigramWord("fgh", unigramProbability);
212 binaryDictionary.addUnigramWord("abc", unigramProbability);
    [all...]
BinaryDictionaryDecayingTests.java 114 final int unigramProbability = binaryDictionary.getFrequency("a");
  /packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
dic_node_utils.cpp 89 const int unigramProbability = node->getProbability();
95 return dictionaryStructurePolicy->getProbability(unigramProbability,
100 wordPos, unigramProbability);
102 return dictionaryStructurePolicy->getProbability(unigramProbability,
  /packages/inputmethods/LatinIME/native/jni/src/suggest/core/policy/
dictionary_structure_with_buffer_policy.h 50 virtual int getProbability(const int unigramProbability,
  /packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/
dynamic_patricia_trie_policy.h 63 int getProbability(const int unigramProbability, const int bigramProbability) const;
patricia_trie_policy.h 60 int getProbability(const int unigramProbability, const int bigramProbability) const;
dynamic_patricia_trie_policy.cpp 162 int DynamicPatriciaTriePolicy::getProbability(const int unigramProbability,
165 return ForgettingCurveUtils::getProbability(unigramProbability, bigramProbability);
167 if (unigramProbability == NOT_A_PROBABILITY) {
170 return ProbabilityUtils::backoff(unigramProbability);
172 return ProbabilityUtils::computeProbabilityForBigram(unigramProbability,
patricia_trie_policy.cpp 322 int PatriciaTriePolicy::getProbability(const int unigramProbability,
324 if (unigramProbability == NOT_A_PROBABILITY) {
327 return ProbabilityUtils::backoff(unigramProbability);
329 return ProbabilityUtils::computeProbabilityForBigram(unigramProbability,
  /packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
BinaryDictionary.java 140 private static native int calculateProbabilityNative(long dict, int unigramProbability,
337 public int calculateProbability(final int unigramProbability, final int bigramProbability) {
339 return calculateProbabilityNative(mNativeDict, unigramProbability, bigramProbability);
  /packages/inputmethods/LatinIME/native/jni/
com_android_inputmethod_latin_BinaryDictionary.cpp 324 jlong dict, jint unigramProbability, jint bigramProbability) {
329 return dictionary->getDictionaryStructurePolicy()->getProbability(unigramProbability,

Completed in 247 milliseconds