KeyHandler_Core // Format fix.

This commit is contained in:
ShikiSuen 2022-07-22 11:10:27 +08:00
parent 8c4f94584b
commit ab8f7fe7a2
1 changed files with 1 additions and 1 deletions

View File

@ -288,7 +288,7 @@ class KeyHandler {
/// - epsilon:
/// - Returns:
func findHighestScore(nodeAnchors: [Megrez.NodeAnchor], epsilon: Double) -> Double {
return nodeAnchors.map(\.node.highestUnigramScore).max() ?? 0 + epsilon
nodeAnchors.map(\.node.highestUnigramScore).max() ?? 0 + epsilon
}
// MARK: - Extracted methods and functions (Tekkon).