Training Data Formatter
v1.0.0Python8 KBUniversal training data formatter for AI and language model pipelines. Feed it .txt, .json, .jsonl, .csv, .tsv, or .md files and it outputs clean, chunked text optimized for any model training pipeline.
What it does
- Auto-detects text fields in JSON and CSV — no manual mapping needed.
- Strips HTML, markdown formatting, and encoding noise automatically.
- Chunks text to model-sized pieces at sentence boundaries.
- Deduplicates content so repeated data does not skew training.
- Quality filter removes garbage chunks that would hurt model performance.
- Compatible with HuggingFace, OpenAI, PyTorch, TensorFlow, and ZDX BAN pipelines.
Quick start
python3 formatter.py --input ./raw_data --output ./corpus/corpus.txt