LMCore // Lock the sequence of punctuations.

This commit is contained in:
ShikiSuen 2022-05-03 21:34:19 +08:00
parent 827fbaf031
commit 471e4ab031
1 changed files with 10 additions and 8 deletions

View File

@ -116,7 +116,10 @@ extension vChewing {
default: break default: break
} }
} }
DispatchQueue.main.async { //
if columnOne.contains("_punctuation_") {
currentUnigram.score -= (Double(lineID) * 0.000001)
}
let kvPair = let kvPair =
self.shouldReverse self.shouldReverse
? Megrez.KeyValuePair(key: columnTwo, value: columnOne) ? Megrez.KeyValuePair(key: columnTwo, value: columnOne)
@ -127,7 +130,6 @@ extension vChewing {
} }
} }
} }
}
// IME.prtDebugIntel("\(self.keyValueScoreMap.count) entries of data loaded from: \(path)") // IME.prtDebugIntel("\(self.keyValueScoreMap.count) entries of data loaded from: \(path)")
} }
theData = "" theData = ""