Skip to content

Commit

Permalink
Remove whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
kwalcock committed Mar 10, 2022
1 parent 9f589de commit bfe2bd5
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ abstract class EidosOntologyGrounder(val name: String, val domainOntology: Domai
case None => 0f
case Some(examples) =>
val scores = examples.map { example =>
val med = new EditDistance().score(lowerString, example.toLowerCase)
val normalizedMed = med / math.max(string.length, example.length)
val score = 1.0 - normalizedMed
val med = new EditDistance().score(lowerString, example.toLowerCase)
val normalizedMed = med / math.max(string.length, example.length)
val score = 1.0 - normalizedMed

// println(s"string: $string, example: $example, score: $score")
score
}
// println(s"string: $string, example: $example, score: $score")
score
}
Collection.maxOption(scores).getOrElse(0.0).toFloat
}
}
Expand Down

0 comments on commit bfe2bd5

Please sign in to comment.