Searched refs:languageModelDictContent (Results 1 – 3 of 3) sorted by relevance
30 LanguageModelDictContent languageModelDictContent(false /* useHistoricalInfo */); in TEST() local36 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() local59 languageModelDictContent.setProbabilityEntry(wordId, &probabilityEntry); in TEST()[all …]
142 const auto languageModelDictContent = mBuffers->getLanguageModelDictContent(); in iterateNgramEntries() local144 for (const auto& entry : languageModelDictContent->getProbabilityEntries( in iterateNgramEntries()511 const LanguageModelDictContent *const languageModelDictContent = in getWordProperty() local519 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()
208 LanguageModelDictContent *const languageModelDictContent = in addNgramEntry() local211 languageModelDictContent->getNgramProbabilityEntry(prevWordIds, wordId); in addNgramEntry()213 if (!languageModelDictContent->setNgramProbabilityEntry( in addNgramEntry()227 LanguageModelDictContent *const languageModelDictContent = in removeNgramEntry() local229 return languageModelDictContent->removeNgramProbabilityEntry(prevWordIds, wordId); in removeNgramEntry()