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.2.tar.gz (10.4 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.2-py3-none-any.whl (15.3 kB view details)

Uploaded Python 3

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

Hashes for codextextpipe-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f677b37bc99233696158e3ce28b90620ccfe52f8c5b7b026c2589a203d4d43a8
MD5 6058388ca1d009ed08a1b8a9e4f759e8
BLAKE2b-256 8e8642803131890973081b400d67048237a343419e0fb4d4c3c5be33c9b5fd65

See more details on using hashes here.

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

Hashes for codextextpipe-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6224a51f7533e0176b99b7dbec529565d28e4ee8ab30303c01b31952dbe92802
MD5 50d6c79d0aba323802e672543bfce907
BLAKE2b-256 b8c8216b6d68d0c8254be06046268640e186925db896cd95d529b3ecb9518dbc

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