emelryan's picture
Remove obsolete unassigned-license text and link the main Parse recipe docs
9d842c7 verified
|
Raw History Blame Contribute Delete
1.94 kB
# Data format
Each WebDataset tar shard contains paired `<key>.json` and `<key>.png`, `<key>.jpg`, or `<key>.jpeg` files. An image and its annotation share a key. Identify a record by **shard path and key**; a key alone need not be globally unique.
| Annotation field | Meaning |
| --- | --- |
| `block_boxes` | Bounding boxes `[x1, y1, x2, y2]` in image pixels. |
| `block_classes` | Semantic content class for each block. |
| `block_text` | Text or structured target for each block, in annotated order. |
These arrays have equal length and aligned entries. Preserve Unicode, block order, escaping, and inline formatting. Optional metadata varies by sample. [example.annotation.json](example.annotation.json) shows a real annotation with the shared fields.
The records contain images and annotations, rather than tokenized model responses. To fine-tune Parse, construct model prompts and targets with the [Parse fine-tuning recipe](https://github.com/NVIDIA-NeMo/Nemotron/blob/main/docs/nemotron/parse/index.md), including its coordinate conversion.
`SHARDS.jsonl` lists every tar file's path, record count, byte size, and SHA-256 checksum. `COUNTS.json` summarizes the complete dataset. All records belong to the training split.
## Multilingual document targets
Pages contain text blocks such as titles, paragraphs, headings, lists, and captions. Text may include mixed scripts, Markdown emphasis, and HTML inline formatting. Optional fields include `block_ids` and `relation_graph`; use the shared block arrays as the primary interface.
[LANGUAGES.md](LANGUAGES.md) lists all 149 recorded language/script entries by name across 28 scripts; [LANGUAGES.json](LANGUAGES.json) provides the machine-readable labels. It is an inventory of available labels, rather than a claim that every page contains only one language. The data uses image/JSON pairs and semantic blocks, unlike the earlier release's HDF5 OCR annotation format.