From ed5fe63b2e149884e3c2a8081a910527a9c29eab Mon Sep 17 00:00:00 2001 From: ShikiSuen Date: Sun, 8 May 2022 18:27:32 +0800 Subject: [PATCH] dataCompiler // Tune down the rate for 0-count phrases. --- DataCompiler/dataCompiler.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DataCompiler/dataCompiler.swift b/DataCompiler/dataCompiler.swift index 9122721d..08261761 100644 --- a/DataCompiler/dataCompiler.swift +++ b/DataCompiler/dataCompiler.swift @@ -356,7 +356,7 @@ func weightAndSort(_ arrStructUncalculated: [Entry], isCHS: Bool) -> [Entry] { weight = -13 case 0: // 墊底低頻漢字與詞語 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: weight = log10( fscale ** (Float(entry.valPhrase.count) / 3.0 - 1.0)