Data Tool Bag (dtbag) - A Python library for text processing, data cleaning, and similarity-based clustering of textual data
Project description
dtbag is a comprehensive Python library designed for efficient text processing and data cleaning. It provides robust tools for identifying and unifying similar text entries, making it ideal for preprocessing textual data in data science and machine learning pipelines.
Core Features
1. Text Similarity & Clustering
- Advanced Levenshtein distance implementation for accurate string matching
- Automatic clustering of similar text entries based on configurable thresholds
- Group-based text unification for consistent data representation
2. Data Cleaning & Normalization
- Intelligent duplicate detection and removal
- Text unification based on frequency analysis
- Support for multilingual text processing
3. Production-Ready Tools
- Scikit-learn compatible API design
- Memory-efficient algorithms for large datasets
- Easy integration with existing data pipelines
#What's Inside:
*CatLists Identifies clusters of similar text entries and returns grouped lists with their most frequent representatives.
*CatUnifier
Transforms lists by replacing similar items with their most common representative, maintaining original list structure.
#Quick Start
from dtbag import CatUnifier
"Clean inconsistent data entries"
data = ["Yassine", "Parrise", "Yasin", "Pris", "PParis" "Yasine", "yasyne", "Paris"]
unifier = CatUnifier()
clean_data = unifier.fit_transform(data, threshold=0.7)
*Result: ["Yassine", "Paris"]
#Installation
```bash
pip install dtbag
Project details
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 dtbag-0.1.0.tar.gz.
File metadata
- Download URL: dtbag-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb3dbe28065eacf5bf8cd850d662ccf67338b4cfd1f3753a2c1343f942201abd
|
|
| MD5 |
d611140c007d77905d4edfbd24ac9b7f
|
|
| BLAKE2b-256 |
5f73221aec76cf90cba8fbcd7bdbc021c55b2d051433cf96ba92cc751f212fcf
|
File details
Details for the file dtbag-0.1.0-py3-none-any.whl.
File metadata
- Download URL: dtbag-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.9.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4f5c96949a2bfbf2da4d2ea62664ffcc73cc9394b8650dfe2247b5d3329c70c
|
|
| MD5 |
c9dbc3bd51646c4f14ecc100e644c5c2
|
|
| BLAKE2b-256 |
8a2f3b62364b031e2180c15bfba10c26ffdd14d18ac14fa861864ef7b5ac4c42
|