dataCompiler // Recognizing Kana liaisons.

This commit is contained in:
ShikiSuen 2022-03-10 20:40:08 +08:00
parent f8bd608d3b
commit ce06119b7c
1 changed files with 3 additions and 1 deletions

View File

@ -319,7 +319,9 @@ func weightAndSort(_ arrStructUncalculated: [Entry], isCHS: Bool) -> [Entry] {
for entry in arrStructUncalculated { for entry in arrStructUncalculated {
var weight: Float = 0 var weight: Float = 0
switch entry.valCount { switch entry.valCount {
case -1: // case -2: //
weight = -13
case -1: //
weight = -13 weight = -13
case 0: // case 0: //
weight = log10(fscale**(Float(entry.valPhrase.count) / 3.0 - 1.0) * 0.5 / norm) weight = log10(fscale**(Float(entry.valPhrase.count) / 3.0 - 1.0) * 0.5 / norm)