Home
last modified time | relevance | path

Searched refs:languageModelDictContent (Results 1 – 3 of 3) sorted by relevance

/packages/inputmethods/LatinIME/native/jni/tests/dictionary/structure/v4/content/
Dlanguage_model_dict_content_test.cpp30 LanguageModelDictContent languageModelDictContent(false /* useHistoricalInfo */); in TEST() local
36 languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry); in TEST()
38 languageModelDictContent.getProbabilityEntry(wordId); in TEST()
43 EXPECT_TRUE(languageModelDictContent.removeProbabilityEntry(wordId)); in TEST()
44 EXPECT_FALSE(languageModelDictContent.getProbabilityEntry(wordId).isValid()); in TEST()
45 EXPECT_FALSE(languageModelDictContent.removeProbabilityEntry(wordId)); in TEST()
46 EXPECT_TRUE(languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry)); in TEST()
47 EXPECT_TRUE(languageModelDictContent.getProbabilityEntry(wordId).isValid()); in TEST()
51 LanguageModelDictContent languageModelDictContent(true /* useHistoricalInfo */); in TEST() local
59 languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry); in TEST()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/v4/
Dver4_patricia_trie_policy.cpp142 const auto languageModelDictContent = mBuffers->getLanguageModelDictContent(); in iterateNgramEntries() local
144 for (const auto& entry : languageModelDictContent->getProbabilityEntries( in iterateNgramEntries()
511 const LanguageModelDictContent *const languageModelDictContent = in getWordProperty() local
519 for (const auto& entry : languageModelDictContent->exportAllNgramEntriesRelatedToWord( in getWordProperty()
527 ngramPrevWordIsBeginningOfSentense[i] = languageModelDictContent->getProbabilityEntry( in getWordProperty()
561 const WordAttributes wordAttributes = languageModelDictContent->getWordAttributes( in getWordProperty()
563 const ProbabilityEntry probabilityEntry = languageModelDictContent->getProbabilityEntry(wordId); in getWordProperty()
Dver4_patricia_trie_node_writer.cpp208 LanguageModelDictContent *const languageModelDictContent = in addNgramEntry() local
211 languageModelDictContent->getNgramProbabilityEntry(prevWordIds, wordId); in addNgramEntry()
213 if (!languageModelDictContent->setNgramProbabilityEntry( in addNgramEntry()
227 LanguageModelDictContent *const languageModelDictContent = in removeNgramEntry() local
229 return languageModelDictContent->removeNgramProbabilityEntry(prevWordIds, wordId); in removeNgramEntry()