Datasets:
page_id string | path string | image_path string | annotation_path string | image_width int64 | image_height int64 | block_count int64 | annotation_version string |
|---|---|---|---|---|---|---|---|
0001 | pages/0001 | pages/0001/image.jpg | pages/0001/annotation.json | 1,700 | 2,201 | 38 | GT v5 |
0002 | pages/0002 | pages/0002/image.webp | pages/0002/annotation.json | 440 | 630 | 19 | GT v5 |
0003 | pages/0003 | pages/0003/image.jpg | pages/0003/annotation.json | 540 | 720 | 16 | GT v5 |
0004 | pages/0004 | pages/0004/image.jpg | pages/0004/annotation.json | 540 | 361 | 3 | GT v5 |
0005 | pages/0005 | pages/0005/image.jpg | pages/0005/annotation.json | 540 | 386 | 3 | GT v5 |
0006 | pages/0006 | pages/0006/image.webp | pages/0006/annotation.json | 440 | 623 | 10 | GT v5 |
0007 | pages/0007 | pages/0007/image.jpg | pages/0007/annotation.json | 540 | 720 | 4 | GT v5 |
0008 | pages/0008 | pages/0008/image.jpg | pages/0008/annotation.json | 540 | 304 | 2 | GT v5 |
0009 | pages/0009 | pages/0009/image.jpg | pages/0009/annotation.json | 540 | 496 | 3 | GT v5 |
0010 | pages/0010 | pages/0010/image.jpg | pages/0010/annotation.json | 540 | 720 | 5 | GT v5 |
0011 | pages/0011 | pages/0011/image.jpg | pages/0011/annotation.json | 540 | 720 | 30 | GT v5 |
0012 | pages/0012 | pages/0012/image.webp | pages/0012/annotation.json | 440 | 622 | 23 | GT v5 |
0013 | pages/0013 | pages/0013/image.jpg | pages/0013/annotation.json | 540 | 720 | 20 | GT v5 |
0014 | pages/0014 | pages/0014/image.jpg | pages/0014/annotation.json | 540 | 720 | 3 | GT v5 |
0015 | pages/0015 | pages/0015/image.jpg | pages/0015/annotation.json | 540 | 720 | 13 | GT v5 |
0016 | pages/0016 | pages/0016/image.jpg | pages/0016/annotation.json | 540 | 720 | 12 | GT v5 |
0017 | pages/0017 | pages/0017/image.jpg | pages/0017/annotation.json | 540 | 720 | 7 | GT v5 |
0018 | pages/0018 | pages/0018/image.jpg | pages/0018/annotation.json | 540 | 720 | 19 | GT v5 |
0019 | pages/0019 | pages/0019/image.jpg | pages/0019/annotation.json | 540 | 720 | 15 | GT v5 |
0020 | pages/0020 | pages/0020/image.jpg | pages/0020/annotation.json | 540 | 720 | 28 | GT v5 |
0021 | pages/0021 | pages/0021/image.jpg | pages/0021/annotation.json | 540 | 720 | 12 | GT v5 |
0022 | pages/0022 | pages/0022/image.jpg | pages/0022/annotation.json | 540 | 720 | 15 | GT v5 |
0023 | pages/0023 | pages/0023/image.jpg | pages/0023/annotation.json | 540 | 722 | 7 | GT v5 |
0024 | pages/0024 | pages/0024/image.jpg | pages/0024/annotation.json | 1,266 | 2,011 | 78 | GT v5 |
0025 | pages/0025 | pages/0025/image.jpg | pages/0025/annotation.json | 540 | 720 | 10 | GT v5 |
0026 | pages/0026 | pages/0026/image.jpg | pages/0026/annotation.json | 540 | 720 | 10 | GT v5 |
0027 | pages/0027 | pages/0027/image.jpg | pages/0027/annotation.json | 540 | 720 | 30 | GT v5 |
0028 | pages/0028 | pages/0028/image.jpg | pages/0028/annotation.json | 540 | 720 | 18 | GT v5 |
0029 | pages/0029 | pages/0029/image.jpg | pages/0029/annotation.json | 1,266 | 2,011 | 80 | GT v5 |
0030 | pages/0030 | pages/0030/image.jpg | pages/0030/annotation.json | 540 | 720 | 17 | GT v5 |
0031 | pages/0031 | pages/0031/image.jpg | pages/0031/annotation.json | 540 | 720 | 16 | GT v5 |
0032 | pages/0032 | pages/0032/image.jpg | pages/0032/annotation.json | 540 | 765 | 5 | GT v5 |
0033 | pages/0033 | pages/0033/image.jpg | pages/0033/annotation.json | 540 | 720 | 11 | GT v5 |
0034 | pages/0034 | pages/0034/image.jpg | pages/0034/annotation.json | 540 | 382 | 18 | GT v5 |
0035 | pages/0035 | pages/0035/image.jpg | pages/0035/annotation.json | 1,266 | 2,011 | 78 | GT v5 |
0036 | pages/0036 | pages/0036/image.jpg | pages/0036/annotation.json | 540 | 1,858 | 27 | GT v5 |
0037 | pages/0037 | pages/0037/image.jpg | pages/0037/annotation.json | 540 | 540 | 17 | GT v5 |
0038 | pages/0038 | pages/0038/image.jpg | pages/0038/annotation.json | 540 | 405 | 2 | GT v5 |
0039 | pages/0039 | pages/0039/image.jpg | pages/0039/annotation.json | 540 | 405 | 29 | GT v5 |
0040 | pages/0040 | pages/0040/image.jpg | pages/0040/annotation.json | 540 | 720 | 11 | GT v5 |
0041 | pages/0041 | pages/0041/image.jpg | pages/0041/annotation.json | 540 | 763 | 28 | GT v5 |
0042 | pages/0042 | pages/0042/image.jpg | pages/0042/annotation.json | 1,266 | 2,011 | 88 | GT v5 |
0043 | pages/0043 | pages/0043/image.jpg | pages/0043/annotation.json | 540 | 720 | 9 | GT v5 |
0044 | pages/0044 | pages/0044/image.jpg | pages/0044/annotation.json | 540 | 909 | 22 | GT v5 |
0045 | pages/0045 | pages/0045/image.jpg | pages/0045/annotation.json | 540 | 738 | 25 | GT v5 |
0046 | pages/0046 | pages/0046/image.jpg | pages/0046/annotation.json | 540 | 964 | 1 | GT v5 |
0047 | pages/0047 | pages/0047/image.jpg | pages/0047/annotation.json | 540 | 764 | 16 | GT v5 |
0048 | pages/0048 | pages/0048/image.jpg | pages/0048/annotation.json | 1,266 | 2,011 | 50 | GT v5 |
0049 | pages/0049 | pages/0049/image.jpg | pages/0049/annotation.json | 540 | 1,141 | 3 | GT v5 |
0050 | pages/0050 | pages/0050/image.jpg | pages/0050/annotation.json | 540 | 960 | 5 | GT v5 |
0051 | pages/0051 | pages/0051/image.jpg | pages/0051/annotation.json | 540 | 720 | 7 | GT v5 |
0052 | pages/0052 | pages/0052/image.jpg | pages/0052/annotation.json | 540 | 720 | 8 | GT v5 |
0053 | pages/0053 | pages/0053/image.jpg | pages/0053/annotation.json | 540 | 720 | 15 | GT v5 |
0054 | pages/0054 | pages/0054/image.jpg | pages/0054/annotation.json | 1,700 | 2,200 | 12 | GT v5 |
0055 | pages/0055 | pages/0055/image.png | pages/0055/annotation.json | 1,653 | 2,159 | 23 | GT v5 |
0056 | pages/0056 | pages/0056/image.jpg | pages/0056/annotation.json | 2,667 | 1,500 | 6 | GT v5 |
0057 | pages/0057 | pages/0057/image.jpg | pages/0057/annotation.json | 1,700 | 2,200 | 6 | GT v5 |
0058 | pages/0058 | pages/0058/image.jpg | pages/0058/annotation.json | 1,700 | 2,201 | 37 | GT v5 |
0059 | pages/0059 | pages/0059/image.jpg | pages/0059/annotation.json | 1,266 | 2,011 | 81 | GT v5 |
0060 | pages/0060 | pages/0060/image.jpg | pages/0060/annotation.json | 1,650 | 2,150 | 9 | GT v5 |
0061 | pages/0061 | pages/0061/image.png | pages/0061/annotation.json | 1,736 | 2,440 | 16 | GT v5 |
0062 | pages/0062 | pages/0062/image.png | pages/0062/annotation.json | 1,784 | 2,432 | 20 | GT v5 |
0063 | pages/0063 | pages/0063/image.png | pages/0063/annotation.json | 1,667 | 2,204 | 11 | GT v5 |
0064 | pages/0064 | pages/0064/image.jpg | pages/0064/annotation.json | 1,696 | 2,197 | 18 | GT v5 |
0065 | pages/0065 | pages/0065/image.jpg | pages/0065/annotation.json | 1,440 | 1,600 | 44 | GT v5 |
0066 | pages/0066 | pages/0066/image.png | pages/0066/annotation.json | 1,428 | 1,889 | 14 | GT v5 |
0067 | pages/0067 | pages/0067/image.jpg | pages/0067/annotation.json | 1,440 | 1,600 | 97 | GT v5 |
0068 | pages/0068 | pages/0068/image.png | pages/0068/annotation.json | 4,903 | 6,320 | 6 | GT v5 |
0069 | pages/0069 | pages/0069/image.png | pages/0069/annotation.json | 1,654 | 2,339 | 20 | GT v5 |
0070 | pages/0070 | pages/0070/image.png | pages/0070/annotation.json | 1,654 | 2,339 | 11 | GT v5 |
0071 | pages/0071 | pages/0071/image.jpg | pages/0071/annotation.json | 1,650 | 2,150 | 13 | GT v5 |
0072 | pages/0072 | pages/0072/image.png | pages/0072/annotation.json | 3,307 | 2,244 | 16 | GT v5 |
0073 | pages/0073 | pages/0073/image.png | pages/0073/annotation.json | 3,307 | 2,244 | 6 | GT v5 |
0074 | pages/0074 | pages/0074/image.png | pages/0074/annotation.json | 1,654 | 2,154 | 16 | GT v5 |
0075 | pages/0075 | pages/0075/image.png | pages/0075/annotation.json | 1,654 | 2,339 | 16 | GT v5 |
0076 | pages/0076 | pages/0076/image.png | pages/0076/annotation.json | 1,699 | 2,215 | 14 | GT v5 |
0077 | pages/0077 | pages/0077/image.png | pages/0077/annotation.json | 1,706 | 2,216 | 9 | GT v5 |
0078 | pages/0078 | pages/0078/image.png | pages/0078/annotation.json | 1,664 | 2,187 | 12 | GT v5 |
0079 | pages/0079 | pages/0079/image.png | pages/0079/annotation.json | 1,800 | 2,317 | 18 | GT v5 |
0080 | pages/0080 | pages/0080/image.png | pages/0080/annotation.json | 1,406 | 2,069 | 14 | GT v5 |
0081 | pages/0081 | pages/0081/image.jpg | pages/0081/annotation.json | 2,200 | 1,700 | 5 | GT v5 |
0082 | pages/0082 | pages/0082/image.jpg | pages/0082/annotation.json | 1,024 | 768 | 10 | GT v5 |
0083 | pages/0083 | pages/0083/image.webp | pages/0083/annotation.json | 1,080 | 1,439 | 8 | GT v5 |
0084 | pages/0084 | pages/0084/image.jpg | pages/0084/annotation.json | 850 | 1,100 | 12 | GT v5 |
0085 | pages/0085 | pages/0085/image.jpg | pages/0085/annotation.json | 1,024 | 768 | 3 | GT v5 |
0086 | pages/0086 | pages/0086/image.jpg | pages/0086/annotation.json | 1,024 | 576 | 5 | GT v5 |
0087 | pages/0087 | pages/0087/image.jpg | pages/0087/annotation.json | 1,262 | 1,792 | 50 | GT v5 |
0088 | pages/0088 | pages/0088/image.jpg | pages/0088/annotation.json | 1,262 | 1,792 | 52 | GT v5 |
0089 | pages/0089 | pages/0089/image.png | pages/0089/annotation.json | 1,530 | 1,980 | 9 | GT v5 |
0090 | pages/0090 | pages/0090/image.png | pages/0090/annotation.json | 1,530 | 1,980 | 32 | GT v5 |
0091 | pages/0091 | pages/0091/image.png | pages/0091/annotation.json | 1,531 | 1,981 | 10 | GT v5 |
0092 | pages/0092 | pages/0092/image.jpg | pages/0092/annotation.json | 1,071 | 1,600 | 8 | GT v5 |
0093 | pages/0093 | pages/0093/image.png | pages/0093/annotation.json | 1,530 | 1,980 | 13 | GT v5 |
0094 | pages/0094 | pages/0094/image.jpg | pages/0094/annotation.json | 540 | 709 | 19 | GT v5 |
0095 | pages/0095 | pages/0095/image.jpg | pages/0095/annotation.json | 540 | 720 | 19 | GT v5 |
0096 | pages/0096 | pages/0096/image.jpg | pages/0096/annotation.json | 540 | 720 | 42 | GT v5 |
0097 | pages/0097 | pages/0097/image.jpg | pages/0097/annotation.json | 540 | 405 | 8 | GT v5 |
0098 | pages/0098 | pages/0098/image.jpg | pages/0098/annotation.json | 540 | 719 | 3 | GT v5 |
0099 | pages/0099 | pages/0099/image.jpg | pages/0099/annotation.json | 540 | 720 | 23 | GT v5 |
0100 | pages/0100 | pages/0100/image.jpg | pages/0100/annotation.json | 540 | 720 | 25 | GT v5 |
AmbiHTMLBench
Reconstruct document page images as executable HTML.
Code | Browse pages | Download ZIP
AmbiHTMLBench evaluates content, structure, and visual fidelity in image-to-HTML reconstruction. The benchmark covers institutional PDF documents, web-native documentation, newspapers and magazines, and posters or design-heavy pages.
What is included
| Material | This release |
|---|---|
| Reference page images | 1,115 |
| Annotated blocks | 28,939 |
| Annotation version | GT v5 |
| Evaluation split | test |
Each page has an original image and a complete block-annotation JSON file.
Images retain their original bytes, resolution and format. The test split is
for evaluation; it is not a training split. This package contains reference
materials, not model predictions or judge records.
Download and use
Download the complete ZIP and extract it, or fetch the repository:
from huggingface_hub import snapshot_download
snapshot_download(repo_id="Theseus-Lab/AmbiHTMLBench", repo_type="dataset",
local_dir="AmbiHTMLBench", ignore_patterns=["archives/*"])
Read a page from the downloaded directory:
import json
from pathlib import Path
from PIL import Image
root = Path("AmbiHTMLBench")
rows = [json.loads(line) for line in (root / "index/pages.jsonl").read_text(encoding="utf-8").splitlines()]
page_id = "0001"
page = next(row for row in rows if row["page_id"] == page_id)
image = Image.open(root / page["image_path"])
annotation = json.loads((root / page["annotation_path"]).read_text(encoding="utf-8"))
assert annotation["ID"] == int(page_id)
For the lightweight index only:
from datasets import load_dataset
pages = load_dataset("Theseus-Lab/AmbiHTMLBench", "pages", split="test")
The viewer contains one metadata row per page. Full images and annotations are in the linked page directories; loading the index does not download them. Use a fixed Hub commit revision when reproducing an experiment.
Dataset structure
README.md
LICENSE
release.json
manifest.json
SHA256SUMS
index/pages.jsonl
pages/0001/image.<original-format>
pages/0001/annotation.json
...
annotations/AmbiHTMLBench_GT_v5_1115.json
archives/AmbiHTMLBench.zip
Index rows contain page_id, path, image_path, annotation_path,
image_width, image_height, block_count, and annotation_version.
All file paths are relative to the dataset repository root.
Page IDs are four-digit strings (0001 through 1115 in the full release).
Each ID links the image and ground truth in pages/<page_id>/; the index
provides their exact local paths. The numeric ID in each annotation and in
the aggregate ground truth identifies the same page.
Each annotation.json contains ID and the complete original contentList.
Blocks contain semantic labels in name, text/table/formula
content in remark, and pixel coordinates in left, top, width, height
where present. Optional block fields and Unicode text are retained. The aggregate
GT file contains the same page annotations. Source image URL fields are omitted
from the index, annotations, manifest and ZIP. Images are loaded from downloaded
files using the ID-to-path mapping; no source URL lookup is needed or provided.
SHA256SUMS covers expanded files and the ZIP, excluding itself. manifest.json
records source and image identities and expanded-file digests, excluding itself
and the ZIP. The ZIP contains the expanded release and manifest, without the
outer ZIP or SHA256SUMS.
Evaluation
Install and follow the evaluation code. Use the aggregate GT JSON and separately generated HTML predictions to measure table, text and layout fidelity. For offline reference visualizations, resolve each page's local image through the index. This GT v5 release is separate from the frozen OLS5 subjective experiment's input snapshot.
Materials and intended use
Reference pages include diverse layouts and multilingual text. Images are included in the release and can be used offline after download. The public annotations are evaluation references and should not be supplied as inputs to models being evaluated. Exposure or training contamination can affect comparisons.
License
This dataset is released under the MIT License.
- Downloads last month
- 133