csimilarity = new Jaro().score( cacheValue, lookupvalue ); break; case FuzzyMatchMeta.OPERATION_TYPE_JARO_WINKLER:
public JaroWinkler() { super(new Jaro()); } static public void main(String[] argv) { doMain(new JaroWinkler(), argv); }
public JaroWinkler() { super(new Jaro()); } static public void main(String[] argv) { doMain(new JaroWinkler(), argv); }
public JaroTFIDF() { super(new Jaro(), 0.30); } public String toString() { return "[JaroTFIDF:threshold="+getTokenMatchThreshold()+"]"; }
public JaroTFIDF() { super(new Jaro(), 0.30); } public String toString() { return "[JaroTFIDF:threshold="+getTokenMatchThreshold()+"]"; }
public JaroWinkler() { super(new Jaro()); } static public void main(String[] argv) { doMain(new JaroWinkler(), argv); }
static public void main(String[] argv) { doMain(new Jaro(), argv); } }
public JaroSecondStringComparator() { secondStringMeasureL1 = new Jaro(); secondStringMeasureL2 = new Level2Jaro(); } }
public JaroSecondStringComparator() { secondStringMeasureL1 = new Jaro(); secondStringMeasureL2 = new Level2Jaro(); } }
public JaroSecondStringComparator() { secondStringMeasureL1 = new Jaro(); secondStringMeasureL2 = new Level2Jaro(); } }
static public void main(String[] argv) { doMain(new Jaro(), argv); } }
static public void main(String[] argv) { doMain(new Jaro(), argv); } }
/** * Test if titles match * In this implementation the jaro similarity metric is used to compare string values. * Very similar strings will have a jaro score close to 1. Different strings have a * jaro score close to 0. * @param s1 title 1 * @param s2 title 2 * @return true if jaro.score(title1, title2) > threshold (threshold defaults to 0.9) */ public boolean valuesMatch(String s1, String s2) { StringWrapper sw1 = new BasicStringWrapper(s1); StringWrapper sw2 = new BasicStringWrapper(s2); Jaro jro = new Jaro(); double tmp = jro.score(sw1, sw2); if (tmp > threshold) return true; else return false; }