Searched refs:NOT_A_PROBABILITY (Results 1 - 25 of 42) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
H A Dbinary_dictionary_bigrams_iterator.h30 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), mHasNext(false) {}
35 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY),
H A Dmulti_bigram_map.cpp41 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY);
67 int bigramProbability = NOT_A_PROBABILITY;
101 if (bigramProbability != NOT_A_PROBABILITY) {
104 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY);
H A Ddictionary_utils.cpp57 int maxProbability = NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/
H A Dpatricia_trie_policy.cpp98 *outUnigramProbability = NOT_A_PROBABILITY;
108 *outUnigramProbability = NOT_A_PROBABILITY;
233 *outUnigramProbability = NOT_A_PROBABILITY;
256 *outUnigramProbability = NOT_A_PROBABILITY;
290 if (unigramProbability == NOT_A_PROBABILITY) {
291 return NOT_A_PROBABILITY;
292 } else if (bigramProbability == NOT_A_PROBABILITY) {
303 return NOT_A_PROBABILITY;
311 return NOT_A_PROBABILITY;
319 && bigramsIt.getProbability() != NOT_A_PROBABILITY) {
[all...]
H A Dver2_patricia_trie_node_reader.cpp35 int probability = NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DDictionary.java31 public static final int NOT_A_PROBABILITY = -1; field in class:Dictionary
104 return NOT_A_PROBABILITY;
108 return NOT_A_PROBABILITY;
H A DReadOnlyBinaryDictionary.java101 return NOT_A_PROBABILITY;
113 return NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/
H A Dver4_patricia_trie_policy.cpp70 // probability is NOT_A_PROBABILITY. In such case, we don't want to treat it as a
72 isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY;
125 if (unigramProbability == NOT_A_PROBABILITY) {
126 return NOT_A_PROBABILITY;
127 } else if (bigramProbability == NOT_A_PROBABILITY) {
138 return NOT_A_PROBABILITY;
142 return NOT_A_PROBABILITY;
150 && bigramsIt.getProbability() != NOT_A_PROBABILITY) {
154 return NOT_A_PROBABILITY;
156 return getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY);
[all...]
H A Dver4_patricia_trie_node_reader.cpp66 int probability = NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/
H A Dver4_patricia_trie_policy.cpp60 // probability is NOT_A_PROBABILITY. In such case, we don't want to treat it as a
62 isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY;
115 if (unigramProbability == NOT_A_PROBABILITY) {
116 return NOT_A_PROBABILITY;
117 } else if (bigramProbability == NOT_A_PROBABILITY) {
128 return NOT_A_PROBABILITY;
132 return NOT_A_PROBABILITY;
140 && bigramsIt.getProbability() != NOT_A_PROBABILITY) {
144 return NOT_A_PROBABILITY;
146 return getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY);
[all...]
H A Dver4_patricia_trie_node_reader.cpp57 int probability = NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DLanguageModelParam.java42 private static final int UNIGRAM_PROBABILITY_FOR_OOV_WORD = Dictionary.NOT_A_PROBABILITY;
44 private static final int BIGRAM_PROBABILITY_FOR_OOV_WORD = Dictionary.NOT_A_PROBABILITY;
62 this(null /* word0 */, word, unigramProbability, Dictionary.NOT_A_PROBABILITY, timestamp);
75 mShortcutProbability = Dictionary.NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/backward/v402/content/
H A Dprobability_entry.h43 : mFlags(0), mProbability(NOT_A_PROBABILITY), mHistoricalInfo() {}
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v2/bigram/
H A Dbigram_list_policy.h41 *outProbability = NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/v4/content/
H A Dbigram_dict_content.cpp34 return BigramEntry(false /* hasNext */, NOT_A_PROBABILITY,
40 int probability = NOT_A_PROBABILITY;
64 return BigramEntry(false /* hasNext */, NOT_A_PROBABILITY,
142 NOT_A_PROBABILITY /* probability */, targetTerminalId, NOT_A_TIMESTAMP, 0 /* level */,
H A Dprobability_entry.h37 : mFlags(0), mProbability(NOT_A_PROBABILITY), mHistoricalInfo() {}
106 return ProbabilityEntry(flags, NOT_A_PROBABILITY, &historicalInfo);
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/utils/
H A Dforgetting_curve_utils.cpp47 if (newProbability != NOT_A_PROBABILITY && originalHistoricalInfo->getLevel() == 0) {
91 if (unigramProbability == NOT_A_PROBABILITY) {
92 return NOT_A_PROBABILITY;
93 } else if (bigramProbability == NOT_A_PROBABILITY) {
206 mTables[tableId][level][timeStepCount] = NOT_A_PROBABILITY;
235 return NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/policyimpl/dictionary/structure/pt_common/
H A Ddynamic_pt_reading_helper.cpp187 *outUnigramProbability = NOT_A_PROBABILITY;
199 *outUnigramProbability = NOT_A_PROBABILITY;
210 *outUnigramProbability = NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/internal/
H A Ddic_node_properties.h33 mProbability(NOT_A_PROBABILITY), mDicNodeCodePoint(NOT_A_CODE_POINT),
60 mProbability = NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/personalization/
H A DDecayingExpandableBinaryDictionaryBase.java40 public static final int FREQUENCY_FOR_WORDS_NOT_IN_DICTS = Dictionary.NOT_A_PROBABILITY;
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
H A Ddic_node_utils.cpp94 NOT_A_PROBABILITY);
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/property/
H A Dunigram_property.h52 mProbability(NOT_A_PROBABILITY), mTimestamp(NOT_A_TIMESTAMP), mLevel(0), mCount(0),
/packages/inputmethods/LatinIME/native/jni/tests/suggest/policyimpl/dictionary/structure/v4/content/
H A Dlanguage_model_dict_content_test.cpp49 const ProbabilityEntry probabilityEntry(flag, NOT_A_PROBABILITY, &historicalInfo);
H A Dprobability_entry_test.cpp46 const ProbabilityEntry entry(flag, NOT_A_PROBABILITY, &historicalInfo);
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
H A DBinaryDictionaryDecayingTests.java74 BinaryDictionary.NOT_A_PROBABILITY /* shortcutProbability */,
227 addUnigramWord(binaryDictionary, "a", Dictionary.NOT_A_PROBABILITY);
229 addUnigramWord(binaryDictionary, "a", Dictionary.NOT_A_PROBABILITY);
230 addUnigramWord(binaryDictionary, "a", Dictionary.NOT_A_PROBABILITY);
236 addBigramWords(binaryDictionary, "a", "b", Dictionary.NOT_A_PROBABILITY);
238 addBigramWords(binaryDictionary, "a", "b", Dictionary.NOT_A_PROBABILITY);
246 addBigramWords(binaryDictionary, "x", "y", Dictionary.NOT_A_PROBABILITY);
610 addUnigramWord(binaryDictionary, "bbb", Dictionary.NOT_A_PROBABILITY);
620 addBigramWords(binaryDictionary, "aaa", "bbb", Dictionary.NOT_A_PROBABILITY);
630 addUnigramWord(binaryDictionary, "bbb", Dictionary.NOT_A_PROBABILITY);
[all...]

Completed in 479 milliseconds

12