LMCoreEX // Patch the score double if it is > 0 (mistyped).
This commit is contained in:
parent
dd54d7d93c
commit
8cf6272a07
|
@ -127,6 +127,9 @@ extension vChewing {
|
|||
if neta.count >= 3, !shouldForceDefaultScore {
|
||||
theScore = .init(neta[2]) ?? defaultScore
|
||||
}
|
||||
if theScore > 0 {
|
||||
theScore *= -1 // 應對可能忘記寫負號的情形
|
||||
}
|
||||
grams.append(Megrez.Unigram(keyValue: kvPair, score: theScore))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue