public class H2OJaroWinklerComparator
extends java.lang.Object
implements no.priv.garshol.duke.Comparator
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 no.priv.garshol.duke.Comparator
public boolean isTokenized()
isTokenized
in interface no.priv.garshol.duke.Comparator
public static double similarity(java.lang.String s1, java.lang.String s2)