Synthetic-Tables-V1 / README.md
emelryan's picture
Remove obsolete unassigned-license text and link the main Parse recipe docs
f9770ad verified
|
Raw History Blame Contribute Delete
3.04 kB
metadata
license: cc-by-4.0
pretty_name: Synthetic Tables V1
task_categories:
  - image-to-text
annotations_creators:
  - machine-generated
size_categories:
  - 1M<n<10M
tags:
  - image
  - text
  - ocr
  - document-parsing
  - synthetic
  - nemotron-3.5-parse
models:
  - nvidia/Nemotron-3.5-Parse

Synthetic Tables V1

HTML-rendered table pages paired with structured annotations. Examples vary table size, headers, merged cells, alignment, borders, and surrounding document text.

1,000,000 image/annotation pairs · 2,000 WebDataset tar shards · training split

This dataset was used to train Nemotron 3.5 Parse. It supports training and adapting models for structured document understanding.

How it was created

Pages were rendered with HTML/CSS, with text and geometry recorded from the same generated tables. See GENERATION.md for the process and SOURCES.md for text-source attribution.

Both HTML and LaTeX-style table representations are included in the primary JSON annotation. Table entries in block_text use the LaTeX-style representation; table_html provides the HTML equivalent. See FORMAT.md for their fields and index mapping.

Format

Each record pairs an image with JSON annotations containing block_boxes, block_classes, and block_text. Boxes use pixel coordinates, and the arrays align by block. See FORMAT.md and an example annotation for the target representation.

Use the data

Install huggingface_hub, fsspec, and pillow. The dataset is public; authentication is not required to read it.

import io
import json
import runpy
from PIL import Image
from huggingface_hub import HfFileSystem, hf_hub_download

repo = "nvidia/Synthetic-Tables-V1"
manifest = hf_hub_download(repo, "SHARDS.jsonl", repo_type="dataset")
with open(manifest) as f:
    shard = json.loads(next(f))["path"]

reader = hf_hub_download(repo, "reader.py", repo_type="dataset")
iter_records = runpy.run_path(reader)["iter_records"]

# Stream one shard; no need to download the entire dataset.
fs = HfFileSystem()
with fs.open(f"datasets/{repo}/{shard}", "rb", block_size=1024 * 1024) as stream:
    records = iter_records(stream)
    try:
        key, parts = next(records)
    finally:
        records.close()

annotation = parts["json"]
image_bytes = next(parts[ext] for ext in ("png", "jpg", "jpeg") if ext in parts)
image = Image.open(io.BytesIO(image_bytes))
print(key, image.size, annotation["block_classes"])

Use the remaining entries in SHARDS.jsonl to iterate over more shards or partition work across workers. The manifest also provides record counts, byte sizes, and SHA-256 checksums. The bundled reader accepts a local tar path as well as an open binary stream.

For model adaptation, see the Parse SFT/RLVR fine-tuning recipe.

Terms

Upstream text and asset terms still apply.