Document dataset cleanup guidance
This commit is contained in:
@@ -6,3 +6,8 @@
|
||||
- Before changing the converter, run `python3 -m py_compile scripts/process_dataset_with_gemini.py`.
|
||||
- For live smoke tests, use a small page set with `--pages`, `--max-docs`, or `--max-pages-per-doc`.
|
||||
- Treat generated Markdown as AI-assisted OCR. The source PDF/image remains authoritative.
|
||||
- Keep dataset cleanup deterministic. Use explicit, reviewable rules for archive-wide edits such as scrubbing local absolute paths, removing API-key leaks, normalizing manifest paths, or collapsing obvious repeated-token artifacts. Verify counts before and after cleanup.
|
||||
- Do not commit helper cleanup scripts unless the user explicitly asks for them. Temporary one-off cleanup/report scripts can be run from the shell or local ignored paths, then removed.
|
||||
- If a page cannot be converted by Gemini, do not leave a permanent `.error.txt` placeholder when the user wants a complete archive. Render the source page locally, inspect it, and use deterministic local OCR/text extraction first.
|
||||
- For difficult pages, use manual image-to-text with Codex from the rendered page image. It is acceptable to write a concise manual page description when a page is image-only, extremely faint, or not reliably transcribable.
|
||||
- After any dataset repair, verify `converted/` has the expected number of `page-*.md` files, no retained `.error.txt` files unless intentionally documented, and `converted/manifest.jsonl` has one final `ok` row per converted page with no duplicate `(asset, page)` keys.
|
||||
|
||||
Reference in New Issue
Block a user