public class H2OJaroWinklerComparator extends java.lang.Object implements StringComparator
Constructor and Description |
---|
H2OJaroWinklerComparator() |
Modifier and Type | Method and Description |
---|---|
double |
compare(java.lang.String s1,
java.lang.String s2) |
boolean |
isTokenized() |
static double |
similarity(java.lang.String s1,
java.lang.String s2)
Returns normalized score, with 0.0 meaning no similarity at all,
and 1.0 meaning full equality.
|
public double compare(java.lang.String s1, java.lang.String s2)
compare
in interface StringComparator
public boolean isTokenized()
isTokenized
in interface StringComparator
public static double similarity(java.lang.String s1, java.lang.String s2)