am 0cd1f222: Fix: native unit test build.
* commit '0cd1f222fd837179f501651256bc15b42317edd0': Fix: native unit test build.main
commit
cc9dd07aa3
|
@ -108,14 +108,14 @@ TEST(LanguageModelDictContentTest, TestGetWordProbability) {
|
|||
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1), wordId,
|
||||
&bigramProbabilityEntry);
|
||||
EXPECT_EQ(bigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
|
||||
nullptr /* headerPolicy */).getProbability());
|
||||
false /* mustMatchAllPrevWords */, nullptr /* headerPolicy */).getProbability());
|
||||
const ProbabilityEntry trigramProbabilityEntry(flag, trigramProbability);
|
||||
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(1),
|
||||
prevWordIds[1], &probabilityEntry);
|
||||
languageModelDictContent.setNgramProbabilityEntry(prevWordIds.limit(2), wordId,
|
||||
&trigramProbabilityEntry);
|
||||
EXPECT_EQ(trigramProbability, languageModelDictContent.getWordAttributes(prevWordIds, wordId,
|
||||
nullptr /* headerPolicy */).getProbability());
|
||||
false /* mustMatchAllPrevWords */, nullptr /* headerPolicy */).getProbability());
|
||||
}
|
||||
|
||||
} // namespace
|
||||
|
|
Loading…
Reference in New Issue