A package for text processing.
Project description
permped-text
A Python library for preprocessing text before sending it to LLMs.
This library helps you:
- Reduce the size of your text by cleaning and minimizing it.
- Extract unique words to avoid repetition.
- Prepare text efficiently before sending it to large language models (LLMs).
Features
get_unique_text(text)– Returns only the unique words from your text.minimize_text(text)– Minimizes and simplifies your text.clean_and_filter_text(text)– Cleans your text and removes unnecessary characters.
Installation
pip install permped-text
from permped_text import get_unique_text, minimize_text, clean_and_filter_text
text = "This is an example text. Some words repeat words."
unique_text = get_unique_text(text)
clean_text = minimize_text(unique_text)
filtered_text = clean_and_filter_text(clean_text)
print(filtered_text)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
permped_text-0.1.0.tar.gz
(2.5 kB
view details)
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 permped_text-0.1.0.tar.gz.
File metadata
- Download URL: permped_text-0.1.0.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
640f7e15bf0dab190dfbc4cc60ebdc7c5d2de43379caab5e03a050e45c3a4e03
|
|
| MD5 |
d079786799438c3df38717a076d54172
|
|
| BLAKE2b-256 |
9903e651379f8295a8d18aeba0a13af5f3869d4caba383ae5292541304379548
|
File details
Details for the file permped_text-0.1.0-py3-none-any.whl.
File metadata
- Download URL: permped_text-0.1.0-py3-none-any.whl
- Upload date:
- Size: 2.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ba1dc0180d26a803de0d1fd142d9ddea62afc534188b96b8a1b3454b12bd78ca
|
|
| MD5 |
d9b799771994e91af747a8d462b4ffa4
|
|
| BLAKE2b-256 |
eb8183fc1814d9bc3775146d43f2a768141ca9fa49e3a9942a3f77783b059031
|