All-in-one tool for text processing
Project description
textpipe
Modern text processing pipeline for machine learning applications
Report Bug
·
Request Feature
Table of Contents
About The Project
textpipe is an end-to-end text processing pipeline designed for modern NLP workflows. It provides:
- Configurable Processing: YAML-based configuration for all processing steps
- Modular Architecture: Clean separation of data loading, cleaning, vectorization, and modeling
- Production Ready: Built-in logging, error handling, and type validation
- ML Integration: Seamless integration with scikit-learn models
- Customizable Components:
- Multiple text cleaning strategies
- Configurable tokenization (stemming, stopwords)
- TF-IDF vectorization with automatic feature management
- Extensible model architecture
Getting Started
Installation
Install the package with pip:
pip install textpipe
Update existing installation:
pip install textpipe --upgrade
Usage
Basic text processing pipeline example:
from textpipe import Config, load_csv, SentimentPipeline
# Initialize configuration
config = Config.get()
# Load training data
texts, labels = load_csv("data/train.csv")
# Initialize and train pipeline
pipeline = SentimentPipeline(config)
pipeline.train(texts, labels)
# Make predictions
new_texts = ["I love this product!", "Terrible service..."]
predictions = pipeline.predict(new_texts)
print(predictions)
Advanced configuration example (config.yml):
processing:
language: english
remove_stopwords: true
use_stemming: false
max_features: 5000
min_text_length: 3
logging:
level: INFO
Contributing
Contributions are what make the open source community an amazing place to learn, inspire, and create. Any contributions are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Top Contributors:
License
Distributed under the MIT License. See LICENSE for more information.
Contact
Textpipe Team - your.email@example.com
Project Link: https://github.com/CodexEsto/textpipe
Acknowledgments
- Scikit-learn community for foundational ML components
- NLTK team for language processing resources
- Pandas for data handling capabilities
- All contributors and open-source maintainers who inspired this work
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
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 codextextpipe-0.1.2.tar.gz.
File metadata
- Download URL: codextextpipe-0.1.2.tar.gz
- Upload date:
- Size: 10.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f677b37bc99233696158e3ce28b90620ccfe52f8c5b7b026c2589a203d4d43a8
|
|
| MD5 |
6058388ca1d009ed08a1b8a9e4f759e8
|
|
| BLAKE2b-256 |
8e8642803131890973081b400d67048237a343419e0fb4d4c3c5be33c9b5fd65
|
File details
Details for the file codextextpipe-0.1.2-py3-none-any.whl.
File metadata
- Download URL: codextextpipe-0.1.2-py3-none-any.whl
- Upload date:
- Size: 15.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6224a51f7533e0176b99b7dbec529565d28e4ee8ab30303c01b31952dbe92802
|
|
| MD5 |
50d6c79d0aba323802e672543bfce907
|
|
| BLAKE2b-256 |
b8c8216b6d68d0c8254be06046268640e186925db896cd95d529b3ecb9518dbc
|