public class JaroWinkler extends Object implements StringSimilarityInterface
| Constructor and Description |
|---|
JaroWinkler() |
JaroWinkler(double threshold) |
| Modifier and Type | Method and Description |
|---|---|
double |
distance(String s1,
String s2)
Generally, distance = 1 - similarity.
|
double |
getThreshold()
Returns the current value of the threshold used for adding the Winkler
bonus.
|
static void |
main(String[] args) |
void |
setThreshold(double threshold)
Sets the threshold used to determine when Winkler bonus should be used.
|
double |
similarity(String s1,
String s2) |
static double |
Similarity(String s0,
String s1)
Jaro-Winkler is string edit distance that was developed in the area of
record linkage (duplicate detection) (Winkler, 1990).
|
public JaroWinkler()
public JaroWinkler(double threshold)
public static void main(String[] args)
public static double Similarity(String s0, String s1)
s0 - s1 - public double similarity(String s1, String s2)
similarity in interface StringSimilarityInterfacepublic double distance(String s1, String s2)
StringSimilarityInterfacedistance in interface StringSimilarityInterfacepublic final void setThreshold(double threshold)
threshold - the new value of the thresholdpublic double getThreshold()
Copyright © 2015. All rights reserved.