zcloud.rapidfuzz module
- zcloud.rapidfuzz.collapse_spaces(text)[source]
Replace multiple whitespace with a single space.
- Return type:
str
- zcloud.rapidfuzz.combined_score(s1, s2)[source]
Average multiple scorers from RapidFuzz.
- Return type:
float
- zcloud.rapidfuzz.fuzzy_match(query, choices, synonyms=None, threshold=70, scorer=<function combined_score>, limit=5)[source]
Run fuzzy match against a list of choices with preprocessing.
- Return type:
List
- zcloud.rapidfuzz.normalize(text, synonyms=None)[source]
Apply full normalization stack: synonyms, accents, punctuation, spaces, casefold.
- Return type:
str
- zcloud.rapidfuzz.remove_accents(text)[source]
Remove accents and diacritics from text.
- Return type:
str