Skip to main content

All-in-one tool for text processing

Project description

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

textpipe

Modern text processing pipeline for machine learning applications

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Contributing
  4. License
  5. Contact

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

(back to top)

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

(back to top)

Contributing

Contributions are what make the open source community an amazing place to learn, inspire, and create. Any contributions are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Top Contributors:

Project Contributors

(back to top)

License

Distributed under the MIT License. See LICENSE for more information.

(back to top)

Contact

Textpipe Team - your.email@example.com

Project Link: https://github.com/CodexEsto/textpipe

(back to top)

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

(back to top)

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

codextextpipe-0.1.3.tar.gz (12.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

codextextpipe-0.1.3-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file codextextpipe-0.1.3.tar.gz.

File metadata

  • Download URL: codextextpipe-0.1.3.tar.gz
  • Upload date:
  • Size: 12.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for codextextpipe-0.1.3.tar.gz
Algorithm Hash digest
SHA256 27cc5706b3320554086fc0bab819a78346ab041401b085149625ce6f8b90ac09
MD5 5ecb673ffa4735b5fb89c0b2044649f6
BLAKE2b-256 1de4205f2833aa01b7461148b531fdfe3f6c692494f45e62e9c1f3ecc5852a78

See more details on using hashes here.

File details

Details for the file codextextpipe-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: codextextpipe-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 15.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for codextextpipe-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9ecccedafa5dfd8eaef865598fbbc58429cd923b604ecc35028240ae4584d196
MD5 a001dce8a7989e9bac06ff7e8ffda259
BLAKE2b-256 d6316f4c5c61e71875d29a96a64898f887022b416caab8c4e10a7a19d04faea4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page