PolyFuzz performs fuzzy string matching, string grouping, and contains extensive evaluation functions.
PolyFuzz is meant to bring fuzzy string matching techniques together within a single framework.
Currently, methods include Levenshtein distance with RapidFuzz, a character-based n-gram TF-IDF, word embedding techniques such as FastText and GloVe, and finally 🤗 transformers embeddings.
You can use your own custom models for both the fuzzy string matching as well as the string grouping.
Corresponding medium post can be found here.
Getting Started
from polyfuzz import PolyFuzz
from_list = ["apple", "apples", "appl", "recal", "house", "similarity"]
to_list = ["apple", "apples", "mouse"]
model = PolyFuzz("TF-IDF").match(from_list, to_list)
The resulting string matches can be accessed through model.get_matches():
>>> model.get_matches()
From To Similarity
apple apple 1.000000
apples apples 1.000000
appl apple 0.783751
recal None 0.000000
house mouse 0.587927
similarity None 0.000000
References
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file polyfuzz-0.0.1.tar.gz.
File metadata
- Download URL: polyfuzz-0.0.1.tar.gz
- Upload date:
- Size: 14.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1fa20151f0f5c62e2b3368eb42b89b61db1bd966bfb6bfd5728496f5989ba624
|
|
| MD5 |
ef590df45da3a8637f9f70ac4599b9e4
|
|
| BLAKE2b-256 |
f8db18c9df7923bf65628b82b2cc74739b3e6cc15656acc7f250198017b0b78b
|
File details
Details for the file polyfuzz-0.0.1-py2.py3-none-any.whl.
File metadata
- Download URL: polyfuzz-0.0.1-py2.py3-none-any.whl
- Upload date:
- Size: 21.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/3.2.0 pkginfo/1.6.1 requests/2.23.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.7.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cccc4d587cc111cd8bb2b804d583772fbdcc29c732105871eb9d23815d520ea7
|
|
| MD5 |
cd6cde4fbc5dc63d1aaf1094cc7237b0
|
|
| BLAKE2b-256 |
70b939fc9efc204e4a3e122650f92ddc55913e1982f8f0bbac1cd172950216a3
|