Jaro Winkler Similarity
Jaro Winkler Distance (wikipedia)
- A string metric that measures an edit distance.
Algorithm:
- Where is the length of string .
- is the number of matching characters
- is the number of transpositions
Jaro and Jaro-Winkler similarity (geeksforgeeks)
Jaro Similarity
measure of similarity between two strings. Value is between 0 and 1. Where 1 means they are equal and 0 means there is no similarity.
Examples: s1 = "CRATE", s2 = "TRACE"
- Jaro similarity is 0.733333
where:
- is the number of matching characters
- is half the number of transpositions
- where **|s1|** and **|s2|** are the lengths of strings s1 and s2 respectively.
Time Complexity: Space:
Jaro-Winkler Similarity
Defined as following: Where:
- is the jaro similarity
- is the jaro-winkler similarity
- is the scaling factor (0.1 by default)
- is the length of hte matching prefix up to a max of 4 characters