Description[LanguageModel] Return top languages only with a reasonable sample set
Before, the LanguageModel returned top languages even if it had only one
data point. Thus the frequencies of top languages could change
drastically in the warm-up phase of the model.
This CL adds a minimum size of the sample set. The model returns empty
list of top languages before this minimal size is reached.
BUG=653058
Committed: https://crrev.com/0de27079beae15d87fd0adb969ad536422031bf9
Cr-Commit-Position: refs/heads/master@{#423849}
Patch Set 1 #Patch Set 2 : Unit-test fix #Patch Set 3 : Fix the constructor #
Messages
Total messages: 18 (11 generated)
|