public class JaroWinkler extends Object
Constructor and Description |
---|
JaroWinkler()
Instantiate with default threshold (0.7).
|
JaroWinkler(double threshold)
Instantiate with given threshold to determine when Winkler bonus should
be used.
|
Modifier and Type | Method and Description |
---|---|
double |
distance(String s1,
String s2)
Return 1 - similarity.
|
double |
getThreshold()
Returns the current value of the threshold used for adding the Winkler
bonus.
|
double |
similarity(String s1,
String s2)
Compute JW similarity.
|
public JaroWinkler()
public JaroWinkler(double threshold)
Copyright © 2012–2020. All rights reserved.