Jaro#
Functions#
similarity#
- rapidfuzz.distance.Jaro.similarity(s1, s2, *, processor=None, score_cutoff=None)#
Calculates the jaro similarity
- Parameters:
s1 (Sequence[Hashable]) – First string to compare.
s2 (Sequence[Hashable]) – Second string to compare.
processor (callable, optional) – Optional callable that is used to preprocess the strings before comparing them. Default is None, which deactivates this behaviour.
score_cutoff (float, optional) – Optional argument for a score threshold as a float between 0 and 1.0. For ratio < score_cutoff 0 is returned instead. Default is 0, which deactivates this behaviour.
- Returns:
similarity – similarity between s1 and s2 as a float between 0 and 1.0
- Return type:
float