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.2.tar.gz
(1.7 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.2.tar.gz.
File metadata
- Download URL: permped_text-0.1.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.1
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
643c36dc834643b2450b4517dd9bf424785e8332fdda0b6e791fe44d2d2ce3a7
|
|
| MD5 |
b1679aefed96cccdf81dd9e542b11be4
|
|
| BLAKE2b-256 |
6b015168291efc6bd55394dcfbb782fd98354cf930e8807b30842d771bdbb189
|
File details
Details for the file permped_text-0.1.2-py3-none-any.whl.
File metadata
- Download URL: permped_text-0.1.2-py3-none-any.whl
- Upload date:
- Size: 1.5 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 |
5235e3a033b8fed844c7e77f4a7e70baa8367c4e6df13705d549ede06c001a98
|
|
| MD5 |
37b6ed09077e708cf8030875315bd6f8
|
|
| BLAKE2b-256 |
3a487d91c96ad61f5334cb225eff3a04c71ef8da38436d4d2d05edbbc8f8273a
|