Revamp config, Gofmt project, and clean up unneeded code
This commit is contained in:
@@ -41,7 +41,6 @@ func Jaro(a, b string) float64 {
|
||||
return ((matches / la) + (matches / lb) + (matches-transposes)/matches) / 3.0
|
||||
}
|
||||
|
||||
|
||||
func JaroWinkler(a, b string, boostThreshold float64, prefixSize int) float64 {
|
||||
j := Jaro(a, b)
|
||||
|
||||
@@ -59,4 +58,4 @@ func JaroWinkler(a, b string, boostThreshold float64, prefixSize int) float64 {
|
||||
}
|
||||
|
||||
return j + 0.1*prefixMatch*(1.0-j)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user