Arabic NLP Toolkit
A complete, production-ready Python package for processing Arabic text following MLOps best practices. Designed for use in machine learning pipelines, it includes utilities for cleaning, normalization, tokenization, and basic sentiment analysis.
Features
- Text Cleaning: Strip diacritics, remove special characters, and normalize Arabic text.
- Tokenization: Simple and rule-based tokenizers and sentence splitters tailored for Arabic text.
- Sentiment Analysis: Basic rule-based sentiment scoring (positive, negative, neutral).
- MLOps Ready: Designed with modularity, testing, and continuous integration in mind.
Installation
From Source
Ensure you have Python 3.8+ installed. You can install it directly by cloning the repository and running:
git clone https://github.com/Melad98/MLOps-package-structure.git
cd MLOps-package-structure
pip install .
For development (including dependencies for testing and building):
pip install -e ".[dev]"
Usage Example
from arabic_nlp_toolkit.cleaning import normalize_arabic
text = normalize_arabic("النّص العَرَبِيُّ!")
print(text)
# Output might be "النص العربي!" depending on the normalization functions
Testing
To run the unit tests, install development requirements and use pytest:
pip install -e ".[dev]"
pytest tests/
Packaging
Ensure your package is buildable using build:
python -m build
Metadata
Release files for arabic-nlp-toolkit 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| arabic_nlp_toolkit-0.1.0.tar.gz | 5.8 kB | Without provenance | Details for arabic_nlp_toolkit-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| arabic_nlp_toolkit-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for arabic_nlp_toolkit-0.1.0-py3-none-any.whl |
Total release size: 11.2 kB
Release files / arabic_nlp_toolkit-0.1.0.tar.gz
| Download URL | arabic_nlp_toolkit-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f59dbe6b18057ee04a3d16f7d4a8a6d95a372b81cd7ff2808a060968af5fd44
|
|
BLAKE2b-256 checksum How to use checksums |
68aadcdcc3d043604c6f21bb8fcce8c789eb1b1665fff1e47aa07ae36ee6e175
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Release files / arabic_nlp_toolkit-0.1.0-py3-none-any.whl
| Download URL | arabic_nlp_toolkit-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
904a88272300b6c6edfaa9afbb819e46b2fc3baf98c6c94d4eaada2bf8f362a7
|
|
BLAKE2b-256 checksum How to use checksums |
48515f8aaa024a60cb8415306e0fc028520344ade82247867dda8eab8c939593
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.8
|
Security for arabic-nlp-toolkit 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.