mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Merge "Use NOT_A_PROBABILITY for adding OOV words."
This commit is contained in:
commit
009bb5642b
@ -37,9 +37,9 @@ public final class LanguageModelParam {
|
||||
// non-0. Thus, it's not meaningful to compare 10, 100, and so on.
|
||||
// TODO: Revise the logic in ForgettingCurveUtils in native code.
|
||||
private static final int UNIGRAM_PROBABILITY_FOR_VALID_WORD = 100;
|
||||
private static final int UNIGRAM_PROBABILITY_FOR_OOV_WORD = 10;
|
||||
private static final int BIGRAM_PROBABILITY_FOR_VALID_WORD = 0;
|
||||
private static final int BIGRAM_PROBABILITY_FOR_OOV_WORD = 0;
|
||||
private static final int UNIGRAM_PROBABILITY_FOR_OOV_WORD = Dictionary.NOT_A_PROBABILITY;
|
||||
private static final int BIGRAM_PROBABILITY_FOR_VALID_WORD = 10;
|
||||
private static final int BIGRAM_PROBABILITY_FOR_OOV_WORD = Dictionary.NOT_A_PROBABILITY;
|
||||
|
||||
public final String mTargetWord;
|
||||
public final int[] mWord0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user