dataCompiler // Tune down the rate for 0-count phrases.

This commit is contained in:
ShikiSuen 2022-05-08 18:27:32 +08:00
parent 17329c0b6a
commit ed5fe63b2e
1 changed files with 1 additions and 1 deletions

View File

@ -356,7 +356,7 @@ func weightAndSort(_ arrStructUncalculated: [Entry], isCHS: Bool) -> [Entry] {
weight = -13 weight = -13
case 0: // case 0: //
weight = log10( weight = log10(
fscale ** (Float(entry.valPhrase.count) / 3.0 - 1.0) * 0.5 / norm) fscale ** (Float(entry.valPhrase.count) / 3.0 - 1.0) * 0.25 / norm)
default: default:
weight = log10( weight = log10(
fscale ** (Float(entry.valPhrase.count) / 3.0 - 1.0) fscale ** (Float(entry.valPhrase.count) / 3.0 - 1.0)