search¶
Services for searching and matching of text.
lshtein¶
A class to calculate a similarity based on the Levenshtein distance.
See also
If available, the RapidFuzz will be used which will provide better performance as it is implemented natively.
- translate.search.lshtein.distance(a, b, stopvalue=0)¶
Same as python_distance in functionality. This uses the fast C version if we detected it earlier.
Note that this does not support arbitrary sequence types, but only string types.
- translate.search.lshtein.native_distance(a, b, stopvalue=0)¶
Same as python_distance in functionality. This uses the fast C version if we detected it earlier.
Note that this does not support arbitrary sequence types, but only string types.
- translate.search.lshtein.python_distance(a, b, stopvalue=-1)¶
Calculates the distance for use in similarity calculation. Python version.
match¶
terminology¶
A class that does terminology matching.