string_treatment is a library for cleaning and adjusting words with inconsistency.
Overview
This library uses string similarity from rapidfuzz to group words with similar spelling into clusters, mapping each word to the most frequent (canonical) form within its cluster.
Since the clustering process may not always be perfectly accurate, the library can generate an interactive graph to help visualize the groupings.
Installation
Install the latest stable version from PyPI:
pip install string-treatment
Example
See the testing script in the root: test_standardize.py.
Metadata
Release files for string-treatment 2.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| string_treatment-2.0.0.tar.gz | 5.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| string_treatment-2.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.2 kB
Release files / string_treatment-2.0.0.tar.gz
| Download URL | string_treatment-2.0.0.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b607e761395e4b722bf185795ea0a72a31b2d5f22762a3a145801f5f5f9966a6
|
|
BLAKE2b-256 checksum How to use checksums |
ec0be4ca13f46e008818b680fc9a398ce9a986dc5c2b03d4cf61e682c4f2abb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|
Release files / string_treatment-2.0.0-py3-none-any.whl
| Download URL | string_treatment-2.0.0-py3-none-any.whl |
|---|---|
| Size | 5.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0189ea0f257b2adea1293a507849e2475de67ff8662881d37e3d8b0d02796ae5
|
|
BLAKE2b-256 checksum How to use checksums |
400a1c55e78a75841570af80204b7fe59094787b4f52b90dca173785151ece4e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.8.17
|