NLP Dataset Engine
A high-performance streaming ingestion engine for terabyte-scale NLP datasets. Built for GSoC 2026 preparation.
User Installation
pip install nlp-engine-yuvraj
Features
- Lazy Loading: Processes datasets larger than RAM using Python generators.
- Auto-Validation: Automatically drops empty or short text records.
- Observability: Provides detailed statistical reports on data quality.
- CLI Interface: simple command-line usage.
Installation
# Clone the repo
git clone [https://github.com/rgb-99/nlp-dataset-engine.git](https://github.com/rgb-99/nlp-dataset-engine.git)
# Install in editable mode
cd nlp-dataset-engine
pip install -e .[dev]
Usage
1. Ingest Data (CSV → JSONL)
Convert massive raw CSV files into clean, validated JSONL datasets for AI training. This runs in O(1) memory.
# Basic usage
nlp-engine ingest --input raw_data.csv --output clean_dataset.jsonl --col text
2. Automatic Observability & Filtering
The engine automatically enforces data quality:
- Language Detection: Removes non-English text by default.
- Health Report: Prints a statistical summary (drop rate, speed, count) after every run.
- Noise Filtering: Rejects rows where >30% of characters are symbols or numbers (e.g., "### 12345").
Disable English Filtering:
If you want to keep all languages (e.g., for a multilingual dataset), use the
--no-englishflag:
nlp-engine ingest --input global_data.csv --output clean.jsonl --no-english
3. Recursive Folder Ingestion
Process an entire directory of data files (CSVs and TXTs) at once. The engine will find all compatible files in subfolders, process them, and aggregate the statistics.
# Ingest entire folder recursively
nlp-engine ingest --input ./data/raw_dump/ --output ./data/clean_combined.jsonl
4. Advanced Production Features (Big Data)
For massive datasets (Terabytes), use these flags to manage resources and failures.
Sharding: Automatically split output into smaller chunks (e.g., 10k rows per file).
nlp-engine ingest --input ./data --output clean.jsonl --shard-size 10000
# Output: clean-0000.jsonl, clean-0001.jsonl...
5. Data Integrity & Compression
Ensure your dataset is safe, verifiable, and compact.
Compression: Use --compress to save disk space (GZIP).
nlp-engine ingest --input ./data --output final.jsonl --compress
# Output: final-0000.jsonl.gz, final-0001.jsonl.gz...
6. Benchmarking
Measure the raw throughput (rows/second) of your environment. This runs the pipeline without writing to disk to test CPU/Validation speed.
nlp-engine benchmark --input large_dataset.csv
# Output:
# BENCHMARK RESULTS
# Rows/Sec: 12500.0
# MB/Sec: 15.2 MB/s
# BENCHMARK RESULTS
# Rows/Sec: 12500.0
Metadata
Release files for nlp-engine-yuvraj 0.1.1
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 | |
|---|---|---|---|---|
| nlp_engine_yuvraj-0.1.1.tar.gz | 13.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| nlp_engine_yuvraj-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 27.7 kB
Release files / nlp_engine_yuvraj-0.1.1.tar.gz
| Download URL | nlp_engine_yuvraj-0.1.1.tar.gz |
|---|---|
| Size | 13.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
58d7a73562e3c56fbb93ed573d0bca738a664a8318c1817422c3ab1ae375ca77
|
|
BLAKE2b-256 checksum How to use checksums |
387aabeef187bc0fde2c5ac36e4d9d3aceb24c9ca209348d2c84d72044df086b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Release files / nlp_engine_yuvraj-0.1.1-py3-none-any.whl
| Download URL | nlp_engine_yuvraj-0.1.1-py3-none-any.whl |
|---|---|
| Size | 13.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
faf8150ce9078f022d3eb68f2c81fb873206bd2b7584b51dc2ba59f132638acf
|
|
BLAKE2b-256 checksum How to use checksums |
0bb426169a446b9e9fab75899a1ae9abbf69d6eb6e0f3728feb7041c98a2d0e7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Security for nlp-engine-yuvraj 0.1.1
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.