com.wcohen.secondstring
Class Jaro
java.lang.Object
|
+--com.wcohen.secondstring.AbstractStringDistance
|
+--com.wcohen.secondstring.Jaro
- All Implemented Interfaces:
- StringDistance
- public class Jaro
- extends AbstractStringDistance
Jaro distance metric. From 'An Application of the Fellegi-Sunter
Model of Record Linkage to the 1990 U.S. Decennial Census' by
William E. Winkler and Yves Thibaudeau.
|
Constructor Summary |
Jaro()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Jaro
public Jaro()
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
score
public double score(StringWrapper s,
StringWrapper t)
- Description copied from class:
AbstractStringDistance
- This method needs to be implemented by subclasses.
- Specified by:
score in interface StringDistance- Specified by:
score in class AbstractStringDistance
explainScore
public java.lang.String explainScore(StringWrapper s,
StringWrapper t)
- Description copied from class:
AbstractStringDistance
- This method needs to be implemented by subclasses.
- Specified by:
explainScore in interface StringDistance- Specified by:
explainScore in class AbstractStringDistance
prepare
public StringWrapper prepare(java.lang.String s)
- Description copied from class:
AbstractStringDistance
- Default way to preprocess a string for distance computation. If
this is an expensive operations, then override this method to
return a StringWrapper implementation that caches appropriate
information about s.
- Specified by:
prepare in interface StringDistance- Overrides:
prepare in class AbstractStringDistance
main
public static void main(java.lang.String[] argv)