Crate fuzzy_match_flex

Source
Expand description

Fuzzy Match is a fuzzy matching library based on the popular FuzzyWuzzy library for python. It contains 4 basic fuzzy matching functions.

Macros§

partial_ratio
Splits the longest string into tokens and uses the levenshtein distance to calculate the similarity of tokens and shorter string.
ratio
Uses the levenshtein distance to calculate the similarity of two strings.
token_set_ratio
Finds the intersection of both strings and calculates the similarity of strings.
token_sort_ratio
Splits both strings into tokens, sorts them and calculates the similarity between sorted words.

Functions§

partial_ratio
Splits the longest string into tokens and uses the levenshtein distance to calculate the similarity of tokens and shorter string.
ratio
Uses the levenshtein distance to calculate the similarity of two strings.
token_set_ratio
Finds the intersection of both strings and calculates the similarity of strings.
token_sort_ratio
Splits both strings into tokens, sorts them and calculates the similarity between sorted words.