LMCore // Lock the sequence of punctuations.
This commit is contained in:
parent
827fbaf031
commit
471e4ab031
|
@ -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 = ""
|
||||||
|
|
Loading…
Reference in New Issue