Skip to main content

A library for pre-processing data used in machine learning models

Project description

lib-ml

lib-ml is a Python library designed for preprocessing text data, especially tailored for machine learning applications. The library offers robust tools for tokenization, sequence padding, and label encoding, ensuring that text data is optimally prepared for model training and analysis. The library is available on PyPI and can be easily integrated into your projects. New releases are automatically created and pushed to PyPI with every push to main.

Repository Structure

└── lib-ml/
    ├── .github
       └── workflows
    ├── LICENSE
    ├── README.md
    ├── dist
       ├── lib_ml_group3-0.2.0-py3-none-any.whl
       └── lib_ml_group3-0.2.0.tar.gz
    ├── lib_ml_group3
       ├── __init__.py
       ├── load_model.py
       └── preprocessing.py
    ├── poetry.lock
    └── pyproject.toml

Installation

Install lib-ml from PyPI:

pip install lib-ml-group3

Features

lib-ml includes the following features:

  • Data Tokenization: Convert text into sequences of tokens or characters.
  • Sequence Padding: Pad sequences to a uniform length to ensure consistency among data inputs.
  • Label Encoding: Encode labels in a way that is suitable for machine learning models.
  • Persistence: Save and load preprocessed data using Python's pickle module for easy reusability.

Usage

Here is a quick example of how to use lib-ml for text data preprocessing:

from lib_ml.preprocessing import preprocess_data

# Preprocess the data and save it to disk
preprocess_data()

The preprocess_data() function reads data from specified input directories, processes the text and labels, and saves the tokenized and encoded outputs to designated output directories.

License

lib-ml is open source software licensed as MIT.

Support

If you have any questions or issues with lib-ml, please open an issue on the project repository, and we will get back to you as soon as possible.

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

lib_ml_group3-0.3.11.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

lib_ml_group3-0.3.11-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file lib_ml_group3-0.3.11.tar.gz.

File metadata

  • Download URL: lib_ml_group3-0.3.11.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure

File hashes

Hashes for lib_ml_group3-0.3.11.tar.gz
Algorithm Hash digest
SHA256 dd67742e9d3960355c1b5dfedfb0cb6ab87e5f5f9978fda34fc1a5f9e4758e28
MD5 7c8c50ad073ae21ca6797f3054626e35
BLAKE2b-256 cec198fa47c1279e59d8d45a25f07c8a817309c7e9b40f1f9f0d93ffbbf219ce

See more details on using hashes here.

File details

Details for the file lib_ml_group3-0.3.11-py3-none-any.whl.

File metadata

  • Download URL: lib_ml_group3-0.3.11-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.9.19 Linux/6.5.0-1022-azure

File hashes

Hashes for lib_ml_group3-0.3.11-py3-none-any.whl
Algorithm Hash digest
SHA256 4e2821c6f43f48d1758946d14cb0c67845a5f5a8c40865cc804ea458841819cc
MD5 3fbcf383cf57a2e6483fee3a7c90f220
BLAKE2b-256 05020f83f03b1fc191b13a834a8a1bfe7ef75dbb38a20d48b5ab87a3e02db207

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