string-grouper is a Python library for grouping similar strings using TF-IDF and cosine similarity. It provides functions to deduplicate and link records with fuzzy string matching, leveraging a sparse matrix representation for scalability. Current version 0.7.2, requires Python >=3.10, <4.0. Release cadence is irregular.
pip install string-grouperNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Groups similar strings in a pandas Series using default TF-IDF and cosine similarity. Install pandas if not present.
Convert your list to a pandas Series: pd.Series(your_list)
Pass a lower threshold: group_similar_strings(series, min_similarity=0.7)
Use StringGrouper or group_similar_strings instead.
Refer to the changelog and update custom callables to accept sparse matrix inputs.
Upgrade to latest: pip install -U string-grouper
Wrap your list: pd.Series(your_list)
Check that your data contains at least one string.
Use sg = StringGrouper(series); groups = sg.get_groups()
No dependency data recorded yet.
No resource links recorded.