技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
data-preparation【数据与研究】Guides pix2tex formula extraction, tokenizer and dataset pickle creation, LaTeX rendering, scraping boundaries, and data-format troubleshooting.
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
Use this sub-skill when the user needs to prepare image/LaTeX pairs for
LaTeX-OCR, extract formulas from TeX-like documents, create a tokenizer, build
Im2LatexDataset pickle files, render formulas to PNGs, or plan safe data
acquisition. Use this before training and evaluation.
# Validate inputs first; this does not create a pickle.
python scripts/check_dataset_inputs.py --equations math.txt --images images/
# Then build the package dataset pickle when the validation looks right.
python -m pix2tex.dataset.dataset \
--equations math.txt \
--images images/ \
--tokenizer tokenizer.json \
--out dataset.pkl
To train a new tokenizer from formulas only:
python -m pix2tex.dataset.dataset --equations math.txt --vocab-size 8000 --out tokenizer.json