Home
last modified time | relevance | path

Searched refs:NOT_A_PROBABILITY (Results 1 – 25 of 36) sorted by relevance

12

/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/
Dver4_patricia_trie_policy.cpp74 isTerminal = ptNodeParams.getProbability() != NOT_A_PROBABILITY; in createAndGetAllChildDicNodes()
133 if (probability != NOT_A_PROBABILITY) { in getWordAttributesInContext()
137 return getWordAttributes(getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY), in getWordAttributesInContext()
151 if (unigramProbability == NOT_A_PROBABILITY) { in getProbability()
152 return NOT_A_PROBABILITY; in getProbability()
154 if (bigramConditionalProbability == NOT_A_PROBABILITY) { in getProbability()
163 return NOT_A_PROBABILITY; in getProbabilityOfWord()
168 return NOT_A_PROBABILITY; in getProbabilityOfWord()
171 return getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY); in getProbabilityOfWord()
174 return NOT_A_PROBABILITY; in getProbabilityOfWord()
[all …]
Dver4_patricia_trie_node_reader.cpp67 int probability = NOT_A_PROBABILITY; in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/
Dpatricia_trie_policy.cpp90 *outUnigramProbability = NOT_A_PROBABILITY; in getCodePointsAndProbabilityAndReturnCodePointCount()
309 if (bigramProbability != NOT_A_PROBABILITY) { in getWordAttributesInContext()
313 return getWordAttributes(getProbability(ptNodeParams.getProbability(), NOT_A_PROBABILITY), in getWordAttributesInContext()
329 if (unigramProbability == NOT_A_PROBABILITY) { in getProbability()
330 return NOT_A_PROBABILITY; in getProbability()
331 } else if (bigramProbability == NOT_A_PROBABILITY) { in getProbability()
342 return NOT_A_PROBABILITY; in getProbabilityOfWord()
350 return NOT_A_PROBABILITY; in getProbabilityOfWord()
359 && bigramsIt.getProbability() != NOT_A_PROBABILITY) { in getProbabilityOfWord()
363 return NOT_A_PROBABILITY; in getProbabilityOfWord()
[all …]
Dver2_patricia_trie_node_reader.cpp35 int probability = NOT_A_PROBABILITY; in fetchPtNodeParamsInBufferFromPtNodePos()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dmulti_bigram_map.cpp41 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in getBigramProbability()
66 int bigramProbability = NOT_A_PROBABILITY; in getBigramProbability()
94 if (bigramProbability != NOT_A_PROBABILITY) { in readBigramProbabilityFromBinaryDictionary()
97 return structurePolicy->getProbability(unigramProbability, NOT_A_PROBABILITY); in readBigramProbabilityFromBinaryDictionary()
Dforgetting_curve_utils.cpp50 if (newProbability != NOT_A_PROBABILITY && originalHistoricalInfo->getLevel() == 0) { in createUpdatedHistoricalInfo()
201 mTables[tableId][level][timeStepCount] = NOT_A_PROBABILITY; in ProbabilityTable()
230 return NOT_A_PROBABILITY; in getBaseProbabilityForLevel()
Dbinary_dictionary_bigrams_iterator.h30 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), mHasNext(false) {} in BinaryDictionaryBigramsIterator()
35 mBigramPos(NOT_A_DICT_POS), mProbability(NOT_A_PROBABILITY), in BinaryDictionaryBigramsIterator()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp120 return NOT_A_PROBABILITY; in getProbabilityOfWord()
126 return NOT_A_PROBABILITY; in getProbabilityOfWord()
150 int probability = NOT_A_PROBABILITY; in iterateNgramEntries()
156 NOT_A_PROBABILITY : 0; in iterateNgramEntries()
387 NOT_A_PROBABILITY, HistoricalInfo(historicalInfo.getTimestamp(), 0 /* level */, in updateEntriesForWordWithNgramContext()
406 true /* isNotAWord */, false /* isPossiblyOffensive */, NOT_A_PROBABILITY, in updateEntriesForWordWithNgramContext()
553 int shortcutProbability = NOT_A_PROBABILITY; in getWordProperty()
Dver4_patricia_trie_node_reader.cpp86 terminalIdFieldPos, terminalId, NOT_A_PROBABILITY, childrenPosFieldPos, childrenPos, in fetchPtNodeInfoFromBufferAndProcessMovedPtNode()
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DBinaryDictionaryTests.java185 assertEquals(Dictionary.NOT_A_PROBABILITY, binaryDictionary.getFrequency(invalidLongWord)); in testAddTooLongWord()
308 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
310 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
312 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
324 assertEquals(Dictionary.NOT_A_PROBABILITY, in testAddBigramWords()
371 assertEquals(bigramProbability != Dictionary.NOT_A_PROBABILITY, in testRandomlyAddBigramWords()
420 assertEquals(Dictionary.NOT_A_PROBABILITY, binaryDictionary.getFrequency("aaa")); in testFlushDictionary()
421 assertEquals(Dictionary.NOT_A_PROBABILITY, binaryDictionary.getFrequency("abcd")); in testFlushDictionary()
517 assertEquals(bigramProbability != Dictionary.NOT_A_PROBABILITY, in testAddBigramWordsAndFlashWithGC()
606 probability = Dictionary.NOT_A_PROBABILITY; in testRandomOperationsAndFlashWithGC()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DDictionary.java34 public static final int NOT_A_PROBABILITY = -1; field in Dictionary
125 return NOT_A_PROBABILITY; in getFrequency()
133 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
DBinaryDictionary.java353 return getFrequency(word) != NOT_A_PROBABILITY; in isInDictionary()
359 return NOT_A_PROBABILITY; in getFrequency()
368 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
376 return getNgramProbability(ngramContext, word) != NOT_A_PROBABILITY; in isValidNgram()
381 return NOT_A_PROBABILITY; in getNgramProbability()
DReadOnlyBinaryDictionary.java103 return NOT_A_PROBABILITY; in getFrequency()
115 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
DDictionaryFacilitatorImpl.java577 Dictionary.NOT_A_PROBABILITY; in addWordToUserHistory()
682 return Dictionary.NOT_A_PROBABILITY; in getFrequency()
684 int maxFreq = Dictionary.NOT_A_PROBABILITY; in getFrequency()
DExpandableBinaryDictionary.java500 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
511 return NOT_A_PROBABILITY; in getMaxFrequencyOfExactMatches()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp73 && ngramProbability == NOT_A_PROBABILITY) { in onVisitEntry()
84 if (wordAttributes.getProbability() == NOT_A_PROBABILITY) { in onVisitEntry()
118 if (wordId == NOT_A_WORD_ID) return NOT_A_PROBABILITY; in getNgramProbability()
Ddictionary_utils.cpp58 int maxProbability = NOT_A_PROBABILITY; in getMaxProbabilityOfExactMatches()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Ddynamic_language_model_probability_utils.h40 return std::min(std::max(probability, NOT_A_PROBABILITY), MAX_PROBABILITY); in backoff()
47 return NOT_A_PROBABILITY; in getDecayedProbability()
Dprobability_entry.h39 : mFlags(Ver4DictConstants::FLAG_NOT_A_VALID_ENTRY), mProbability(NOT_A_PROBABILITY), in ProbabilityEntry()
48 : mFlags(flags), mProbability(NOT_A_PROBABILITY), mHistoricalInfo(*historicalInfo) {} in ProbabilityEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/content/
Dbigram_dict_content.cpp41 return BigramEntry(false /* hasNext */, NOT_A_PROBABILITY, in getBigramEntryAndAdvancePosition()
47 int probability = NOT_A_PROBABILITY; in getBigramEntryAndAdvancePosition()
Dprobability_entry.h43 : mFlags(0), mProbability(NOT_A_PROBABILITY), mHistoricalInfo() {} in ProbabilityEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/backward/v402/bigram/
Dver4_bigram_list_policy.cpp79 const BigramEntry newBigramEntry(false /* hasNext */, NOT_A_PROBABILITY, in addNewEntry()
112 const BigramEntry newBigramEntry(false /* hasNext */, NOT_A_PROBABILITY, in addNewEntry()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/property/
Dword_attributes.h26 : mProbability(NOT_A_PROBABILITY), mIsBlacklisted(false), mIsNotAWord(false), in WordAttributes()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v2/bigram/
Dbigram_list_policy.h41 *outProbability = NOT_A_PROBABILITY; in getNextBigram()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_utils.cpp77 if (wordAttributes.getProbability() == NOT_A_PROBABILITY in getBigramNodeImprobability()

12