pimlico.utils.strings module¶
-
similarities
(targets, reference)[source]¶ Compute string similarity of each of a list of targets to a given reference string. Uses difflib.SequenceMatcher to compute similarity.
Parameters: - reference – compare all strings to this one
- targets – list of targets to measure similarity of
Returns: list of similarity values