Home
last modified time | relevance | path

Searched refs:wordAttributes (Results 1 – 9 of 9) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/src/suggest/core/result/
Dsuggestions_output_utils.cpp81 const WordAttributes wordAttributes, const bool isLastWord) { in shouldBlockWord() argument
89 wordAttributes.isPossiblyOffensive(); in shouldBlockWord()
139 const WordAttributes wordAttributes = traverseSession->getDictionaryStructurePolicy() in outputSuggestionsOfDicNode() local
151 (wordAttributes.isPossiblyOffensive() ? Dictionary::KIND_FLAG_POSSIBLY_OFFENSIVE : 0) in outputSuggestionsOfDicNode()
158 const bool isValidWord = !(wordAttributes.isBlacklisted() || wordAttributes.isNotAWord()); in outputSuggestionsOfDicNode()
161 terminalDicNode, wordAttributes, true /* isLastWord */); in outputSuggestionsOfDicNode()
169 boostExactMatches, wordAttributes.getProbability() == 0); in outputSuggestionsOfDicNode()
Dsuggestions_output_utils.h39 const DicNode *const terminalDicNode, const WordAttributes wordAttributes,
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dicnode/
Ddic_node_utils.cpp75 const WordAttributes wordAttributes = dictionaryStructurePolicy->getWordAttributesInContext( in getBigramNodeImprobability() local
77 if (wordAttributes.getProbability() == NOT_A_PROBABILITY in getBigramNodeImprobability()
79 && (wordAttributes.isBlacklisted() || wordAttributes.isNotAWord()))) { in getBigramNodeImprobability()
83 const float cost = static_cast<float>(MAX_PROBABILITY - wordAttributes.getProbability()) in getBigramNodeImprobability()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp122 const WordAttributes wordAttributes = in getProbabilityOfWord() local
125 if (wordAttributes.isBlacklisted() || wordAttributes.isNotAWord()) { in getProbabilityOfWord()
128 return wordAttributes.getProbability(); in getProbabilityOfWord()
561 const WordAttributes wordAttributes = languageModelDictContent->getWordAttributes( in getWordProperty() local
566 wordAttributes.isNotAWord(), wordAttributes.isBlacklisted(), in getWordProperty()
567 wordAttributes.isPossiblyOffensive(), wordAttributes.getProbability(), in getWordProperty()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/dictionary/
Ddictionary.cpp82 const WordAttributes wordAttributes = mDictStructurePolicy->getWordAttributesInContext( in onVisitEntry() local
84 if (wordAttributes.getProbability() == NOT_A_PROBABILITY) { in onVisitEntry()
88 wordAttributes.getProbability()); in onVisitEntry()
Ddictionary_utils.cpp63 const WordAttributes wordAttributes = in getMaxProbabilityOfExactMatches() local
67 maxProbability = std::max(maxProbability, wordAttributes.getProbability()); in getMaxProbabilityOfExactMatches()
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/
Dsuggest.cpp415 const WordAttributes wordAttributes = in createNextWordDicNode() local
420 dicNode, wordAttributes, false /* isLastWord */)) { in createNextWordDicNode()
424 if (!TRAVERSAL->isGoodToTraverseNextWord(dicNode, wordAttributes.getProbability())) { in createNextWordDicNode()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/content/
Dlanguage_model_dict_content.h117 const WordAttributes &wordAttributes, const ProbabilityEntry &probabilityEntry) in DumppedFullEntryInfo() argument
119 mWordAttributes(wordAttributes), mProbabilityEntry(probabilityEntry) {} in DumppedFullEntryInfo()
Dlanguage_model_dict_content.cpp183 const WordAttributes wordAttributes = getWordAttributes( in exportAllNgramEntriesRelatedToWordInner() local
187 wordAttributes, probabilityEntry); in exportAllNgramEntriesRelatedToWordInner()