|
The Jaro-Winkler distance (Winkler, 1999) is a measure of similarity between two strings. It is a variant of the Jaro distance metric (Jaro, 1989, 1995) and mainly used in the area of record linkage (duplicate detection). The higher the Jaro-Winkler distance for two strings is, the more similar the strings are. The Jaro-Winkler distance metric is designed and best suited for short strings such as person names. The score is normalized such that 0 equates to no similarity and 1 is an exact match. The Jaro distance metric states that given two strings s1 and s2, their distance dj is: where:
Two characters from s1 and s2 respectively, are considered matching only if they are not farther than Each character of s1 is compared with all its matching characters in s2. The number of matching (but different) characters divided by two defines the number of transpositions. Jaro-Winkler distance uses a prefix scale p which gives more favourable ratings to strings that match from the beginning for a set prefix length where:
Although often referred to as a distance metric, the Jaro–Winkler distance is actually not a metric in the mathematical sense of that term.
ExampleNote that Winkler's "reference" C code differs in at least two ways from published accounts of the Jaro-Winkler metric. First is his use of a typo table (adjwt) and also some optional additional tolerance for long strings. Given the strings s1 MARTHA and s2 MARHTA we find:
We find a Jaro score of: To find the Jaro-Winkler score using the standard weight d = 0.1, we continue to find: Thus:
Given the strings s1 DWAYNE and s2 DUANE we find:
We find a Jaro score of: To find the Jaro-Winkler score using the standard weight d = 0.1, we continue to find: Thus:
We find a Jaro score of: To find the Jaro-Winkler score using the standard weight d = 0.1, we continue to find: Thus:
References
See alsoExternal links |
This article is from Wikipedia. All text is available under the terms of the GNU Free Documentation License.
Mercedes Car
This site monitored by SitePinger.net