mirror of
https://github.com/mii443/AzooKeyKanaKanjiConverter.git
synced 2025-12-03 02:58:27 +00:00
fix: log(logprob) is ridiculous
This commit is contained in:
@@ -497,7 +497,7 @@ final class ZenzContext {
|
||||
)
|
||||
}
|
||||
}
|
||||
score += logf(maxItem.logprob)
|
||||
score += maxItem.logprob
|
||||
}
|
||||
return .pass(score: score, alternativeConstraints: altTokens.unordered.sorted(by: >).map {.init(probabilityRatio: $0.probabilityRatioToMaxProb, prefixConstraint: $0.constraint)})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user