nchhaya commited on
Commit
3741753
·
verified ·
1 Parent(s): 535462f

Add synthetic fine-print dataset: 100 pages, clause spans and QA pairs

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
README.md ADDED
@@ -0,0 +1,131 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ language:
4
+ - en
5
+ pretty_name: Synthetic Fine Print
6
+ size_categories:
7
+ - n<1K
8
+ task_categories:
9
+ - image-to-text
10
+ - document-question-answering
11
+ tags:
12
+ - synthetic
13
+ - document-ai
14
+ - enterprise-documents
15
+ - hyperapi
16
+ - fine-print
17
+ - terms-and-conditions
18
+ - ocr
19
+ - accounts-payable
20
+ - key-information-extraction
21
+ ---
22
+
23
+ # Synthetic Fine Print
24
+
25
+ **100 business documents with a terms-and-conditions block set in 4 to 6 point type.** The clauses hold facts that matter downstream: payment terms, late-payment interest, early-payment discounts, reminder and reconnection fees, return windows and restocking fees, warranty periods, quote validity, cancellation charges and governing law. Every clause is labelled with its character span and pixel boxes, and **392 question–answer pairs** can only be answered from the fine print.
26
+
27
+ Fine print is one of the failure patterns named in Hyperbots' SAVIOR paper ([arXiv:2611.27319](https://huggingface.co/papers/2611.27319), WACV 2026 Workshops): OCR models and vision-language models often skip it entirely or garble the numbers in it, and the numbers are exactly what an accounts-payable or contract workflow needs.
28
+
29
+ > **Benchmarking a document AI vendor?** Score [HyperAPI](https://huggingface.co/spaces/hyperbots-inc/HyperAPI) on this dataset with a [free API key](https://apis.hyperbots.com/dashboard/register?utm_source=huggingface&utm_medium=dataset_card&utm_campaign=hyperapi_hf&utm_content=synthetic-fine-print) (30 pages a month), try it with no code in the [live demo](https://huggingface.co/spaces/nchhaya/hyperapi-demo), or [request a proof of concept](https://www.hyperbots.com/request-demo?utm_source=huggingface&utm_medium=dataset_card&utm_campaign=hyperapi_hf&utm_content=synthetic-fine-print) on your own documents.
30
+
31
+ ## What's on each page
32
+
33
+ Each page is a normal rendered business document (1240 × 1754 px, A4 at 150 dpi) with one fine-print block added between the body and the footer, either just under the content or pushed down to the footer.
34
+
35
+ | Size level | Pages | Font size | Approx. print size |
36
+ |---|---|---|---|
37
+ | `small` | 40 | 12–13 px | 5.8–6.2 pt |
38
+ | `tiny` | 30 | 10–11 px | 4.8–5.3 pt |
39
+ | `micro` | 30 | 8–9 px | 3.8–4.3 pt |
40
+
41
+ - 36 pages set the block in two columns; the rest use one full-width column.
42
+ - 56 pages print it in grey ink (#444 to #6e6e6e) rather than near-black.
43
+ - Typefaces include condensed (Arial Narrow) and serif faces (Times New Roman, Baskerville, Palatino) as well as the documents' own sans-serif faces.
44
+ - 10 document types, 10 pages each: invoice, tax invoice, statement of account, credit note, purchase order, quotation, work order, delivery note, utility bill and credit card statement. Clauses are chosen to fit the type (quote validity only on quotations, minimum payment only on card statements, and so on).
45
+ - Each block has 3 to 5 fact clauses and 2 to 3 boilerplate clauses (retention of title, limitation of liability, "errors and omissions excepted"), shuffled, sometimes numbered, under headings such as "Terms and Conditions" or "Important information".
46
+ - Where the document already prints a payment term (for example "Terms: Net 15"), the fine print states the same number of days, so the page never contradicts itself.
47
+
48
+ | Clause type | Count | Clause type | Count |
49
+ |---|---|---|---|
50
+ | `governing_law` | 76 | `early_payment_discount` | 22 |
51
+ | `late_interest` | 51 | `cancellation_fee` | 22 |
52
+ | `returns` | 40 | `quote_validity` | 10 |
53
+ | `warranty` | 38 | `credit_note_validity` | 10 |
54
+ | `reminder_fee` | 36 | `minimum_payment` | 9 |
55
+ | `claims_window` | 33 | `supplier_payment_terms` | 8 |
56
+ | `payment_terms` | 30 | `reconnection_fee` | 7 |
57
+ | `boilerplate` (no question) | 249 | | |
58
+
59
+ ## Columns
60
+
61
+ | Column | Description |
62
+ |---|---|
63
+ | `image` | The page, JPEG |
64
+ | `doc_type`, `taxonomy_id`, `taxonomy_name`, `category` | Document type in the shared 31-type taxonomy |
65
+ | `size_level`, `font_px`, `approx_pt`, `font_family`, `color`, `columns` | How the fine print was set |
66
+ | `fine_print` | `{heading, text, bbox, lines}`; `lines` gives each printed line with its text, character offsets into `text` and pixel box |
67
+ | `clauses` | List of `{type, text, value, start, end, bboxes}`; `start`/`end` index `fine_print.text`, `bboxes` covers every line the clause touches |
68
+ | `qa` | List of `{question, answer, clause_type}`, one per fact clause |
69
+ | `fields` | Printed key fields elsewhere on the page with their boxes |
70
+ | `labels` | JSON string with the document's full ground-truth entities |
71
+ | `ocr_text` | Page text in reading order, with the fine print before the footer |
72
+
73
+ ```python
74
+ from datasets import load_dataset
75
+ ds = load_dataset("hyperbots-inc/synthetic-fine-print", split="test")
76
+ ex = ds[0]
77
+ for qa in ex["qa"]:
78
+ print(qa["question"], "->", qa["answer"])
79
+ ```
80
+
81
+ ## What to measure
82
+
83
+ 1. **Recall of the fine print itself.** Compare your OCR output with `fine_print.text` (character error rate, or the share of clauses recovered), broken down by `size_level`. Many pipelines do well on `small` and drop most of `micro`.
84
+ 2. **Getting the numbers right.** For each fact clause, check that `value` appears exactly in your output. A dropped "%" or a 1.5 read as 15 is a wrong answer even if the character error rate looks fine.
85
+ 3. **Answering questions from the image.** Ask a vision-language model the `qa` questions directly and score exact or normalised match against `answer`.
86
+
87
+ ## How the data was made
88
+
89
+ Every document is generated from a seeded random number generator by [`docgen.js`](https://huggingface.co/datasets/hyperbots-inc/synthetic-fine-print/blob/main/generator/docgen.js) and rendered on an HTML canvas in Chrome on macOS; [`fine_print.js`](https://huggingface.co/datasets/hyperbots-inc/synthetic-fine-print/blob/main/generator/fine_print.js) then adds the fine-print block (seeds 12,300,000 to 12,300,099). Text spans and boxes are recorded as the text is drawn, so the labels are exact. All companies, people, amounts and terms are invented.
90
+
91
+ ## Limitations
92
+
93
+ - Clean renders: no blur, noise or skew. To test fine print under scan damage, combine with [synthetic-bad-scans](https://huggingface.co/datasets/hyperbots-inc/synthetic-bad-scans).
94
+ - English only, one fine-print block per page, always near the bottom. Real documents also print terms on the back of the page or in a separate attachment.
95
+ - The clause wording comes from a fixed set of templates, so a model could learn the phrasing. Use it as a test set, not training data.
96
+ - Not legal advice: the clauses are realistic in form but were not drafted for any jurisdiction.
97
+
98
+ ## About HyperAPI
99
+
100
+ [HyperAPI](https://apis.hyperbots.com?utm_source=huggingface&utm_medium=dataset_card&utm_campaign=hyperapi_hf&utm_content=synthetic-fine-print) is Hyperbots' document intelligence API for enterprise documents. It provides **parse, extract, classify, split and redact** behind one endpoint and returns schema-validated JSON with a confidence score on every field. It has a REST API and a Python SDK, with an MCP server for agents available on request, and you can [start free](https://apis.hyperbots.com/dashboard/register?utm_source=huggingface&utm_medium=dataset_card&utm_campaign=hyperapi_hf&utm_content=synthetic-fine-print). See the [HyperAPI Space](https://huggingface.co/spaces/hyperbots-inc/HyperAPI) for a walkthrough.
101
+
102
+ ## Part of the Hyperbots synthetic document suite
103
+
104
+ | Dataset | Focus |
105
+ |---|---|
106
+ | [synthetic-enterprise-doc-extraction](https://huggingface.co/datasets/hyperbots-inc/synthetic-enterprise-doc-extraction) | Field extraction across 31 enterprise document types |
107
+ | [synthetic-doc-parsing](https://huggingface.co/datasets/hyperbots-inc/synthetic-doc-parsing) | Layout blocks, reading order, Markdown and tables |
108
+ | [synthetic-pii-redaction](https://huggingface.co/datasets/hyperbots-inc/synthetic-pii-redaction) | PII spans and boxes for masking and de-identification |
109
+ | [synthetic-doc-classification](https://huggingface.co/datasets/hyperbots-inc/synthetic-doc-classification) | 31-class document classification |
110
+ | [synthetic-doc-splitting](https://huggingface.co/datasets/hyperbots-inc/synthetic-doc-splitting) | Multi-document bundles with true boundaries |
111
+ | [synthetic-handwritten-forms](https://huggingface.co/datasets/hyperbots-inc/synthetic-handwritten-forms) | Forms filled in handwriting-style script |
112
+ | [synthetic-stamped-documents](https://huggingface.co/datasets/hyperbots-inc/synthetic-stamped-documents) | Stamps and seals over printed text |
113
+ | [synthetic-bad-scans](https://huggingface.co/datasets/hyperbots-inc/synthetic-bad-scans) | Skew, blur, noise, shadows and compression at 3 severities |
114
+ | [synthetic-dense-documents](https://huggingface.co/datasets/hyperbots-inc/synthetic-dense-documents) | Small type, multi-column layouts and long tables |
115
+ | [synthetic-invoice-extraction](https://huggingface.co/datasets/hyperbots-inc/synthetic-invoice-extraction) | Invoice fields and line items (text + HTML) |
116
+ | [synthetic-rotated-text](https://huggingface.co/datasets/hyperbots-inc/synthetic-rotated-text) | Pages scanned sideways or upside down, vertical margin text, angled stamps |
117
+ | [synthetic-logo-vendor-names](https://huggingface.co/datasets/hyperbots-inc/synthetic-logo-vendor-names) | Vendor names that appear only inside a logo |
118
+ | **synthetic-fine-print** (this dataset) | Terms and conditions in 4–6 pt type, with clause spans and questions |
119
+
120
+ ## License and citation
121
+
122
+ CC BY 4.0. Generator code is MIT.
123
+
124
+ ```bibtex
125
+ @misc{hyperbots2026fineprint,
126
+ title = {Synthetic Fine Print},
127
+ author = {Hyperbots Inc.},
128
+ year = {2026},
129
+ url = {https://huggingface.co/datasets/hyperbots-inc/synthetic-fine-print}
130
+ }
131
+ ```
data/test/fp-0001.jpg ADDED

Git LFS Details

  • SHA256: b4a87451bb251d5f1ed802339a5735c6a62d676361ce1d8a87466bd02fac45ac
  • Pointer size: 131 Bytes
  • Size of remote file: 168 kB
data/test/fp-0002.jpg ADDED

Git LFS Details

  • SHA256: be88997efdff8410ff0c248c8a7a7702317a6f2678bd984a3fdc88bb8ff2d5b6
  • Pointer size: 131 Bytes
  • Size of remote file: 128 kB
data/test/fp-0003.jpg ADDED

Git LFS Details

  • SHA256: 3257ed5f4a2ea0cbe8e1e523a7e022d2c61654fffc4d9e1cbb408664989d359e
  • Pointer size: 131 Bytes
  • Size of remote file: 168 kB
data/test/fp-0004.jpg ADDED

Git LFS Details

  • SHA256: c2d0f5198121941641cd3e9c76f35694814dcf2e04c8772d8729a92fc3716ba4
  • Pointer size: 131 Bytes
  • Size of remote file: 127 kB
data/test/fp-0005.jpg ADDED

Git LFS Details

  • SHA256: d18320684e94aead8c90334e9aacd4b51e2619d73df6288c1052258d86301876
  • Pointer size: 131 Bytes
  • Size of remote file: 188 kB
data/test/fp-0006.jpg ADDED

Git LFS Details

  • SHA256: 58878bbd788d59196e4979c82576c43f5545ec5c3329cfaf5806e06beac71aad
  • Pointer size: 131 Bytes
  • Size of remote file: 162 kB
data/test/fp-0007.jpg ADDED

Git LFS Details

  • SHA256: bbdb3e04a52911cbfef56203c77c526728eb2361aa0848eaad0cdcbc0a761c2a
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
data/test/fp-0008.jpg ADDED

Git LFS Details

  • SHA256: 6da34581089194ddaa5c92100f1403e30b5a1a437789ec2768ad55b16d3c4d8c
  • Pointer size: 131 Bytes
  • Size of remote file: 178 kB
data/test/fp-0009.jpg ADDED

Git LFS Details

  • SHA256: 86f89871584fa9c8e63765639027be45dcdd4ccb3f848b9e0ba683579bc12c95
  • Pointer size: 131 Bytes
  • Size of remote file: 160 kB
data/test/fp-0010.jpg ADDED

Git LFS Details

  • SHA256: e00d7423ab992b39443d651550fc537b666775e7f0b09d10db65ada39f6f5674
  • Pointer size: 131 Bytes
  • Size of remote file: 249 kB
data/test/fp-0011.jpg ADDED

Git LFS Details

  • SHA256: 9b6c4b14c9eef8c2976c00fc01b7a072aba704a1fd535cbbe55ea2ae893ee68c
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB
data/test/fp-0012.jpg ADDED

Git LFS Details

  • SHA256: a1ffcf3871c929b1ec32ea8c05a0dd75827ef8d546403bf64c8acbb0ed54564c
  • Pointer size: 131 Bytes
  • Size of remote file: 147 kB
data/test/fp-0013.jpg ADDED

Git LFS Details

  • SHA256: a28d9a54d5e9d5b282988af043ff2f01a99241a6e06459291c7fcf14ab69218a
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
data/test/fp-0014.jpg ADDED

Git LFS Details

  • SHA256: 8ccc7084fd235d833f8740ec6d1e4c74824d411bcc36a32e1ca412ae1e190e78
  • Pointer size: 131 Bytes
  • Size of remote file: 154 kB
data/test/fp-0015.jpg ADDED

Git LFS Details

  • SHA256: 87d6a68e75581b37569aa50c4ea2ec28e031bfc63fdd69b24ca3ccb31cf57353
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB
data/test/fp-0016.jpg ADDED

Git LFS Details

  • SHA256: 7b836aaefb0158820905a21f1d7dda8b6c4dfc8ab939b1c94714c2966f0faf8d
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB
data/test/fp-0017.jpg ADDED

Git LFS Details

  • SHA256: 518c97344e343da7f224454ab2e4f8e5c92870afc0406fa880b5b7499c401b51
  • Pointer size: 131 Bytes
  • Size of remote file: 144 kB
data/test/fp-0018.jpg ADDED

Git LFS Details

  • SHA256: e2d5ec5c71255fd9a35c974d7fbe6a0af9e79dcf2cf8133e300c0452d7bc7b96
  • Pointer size: 131 Bytes
  • Size of remote file: 158 kB
data/test/fp-0019.jpg ADDED

Git LFS Details

  • SHA256: 0770f41091a85ccf66cf5406886bec5e13bc68d4e6e34fa9ada7bf6021ce09c0
  • Pointer size: 131 Bytes
  • Size of remote file: 139 kB
data/test/fp-0020.jpg ADDED

Git LFS Details

  • SHA256: 5c1b3054a90d5f25f1d71cd85203adb51f054f83a74e4520e8bba4190bb5f688
  • Pointer size: 131 Bytes
  • Size of remote file: 247 kB
data/test/fp-0021.jpg ADDED

Git LFS Details

  • SHA256: 84f7d24e140b9477a1823b98d892e04848439ccda7a90ea3e409a69f99ab417a
  • Pointer size: 131 Bytes
  • Size of remote file: 143 kB
data/test/fp-0022.jpg ADDED

Git LFS Details

  • SHA256: 4ef7cc31900eaee625a425300e1a8a0e65c6cae8d27b7bf41eee23c1fab20562
  • Pointer size: 131 Bytes
  • Size of remote file: 165 kB
data/test/fp-0023.jpg ADDED

Git LFS Details

  • SHA256: 3a963a63c69403292e9a29cb4eddd3c7c65bf6d57f4ad04f8185324a97866a31
  • Pointer size: 131 Bytes
  • Size of remote file: 128 kB
data/test/fp-0024.jpg ADDED

Git LFS Details

  • SHA256: 1677ec8c796ff1fd21c0fdaf079224ff6cf083a7cfd8765bbf08940776da66e0
  • Pointer size: 131 Bytes
  • Size of remote file: 164 kB
data/test/fp-0025.jpg ADDED

Git LFS Details

  • SHA256: 25adf1635c3c9edd9aba7d1c70dfce2a9c949e7db39558295e86a212fa58b1ed
  • Pointer size: 131 Bytes
  • Size of remote file: 115 kB
data/test/fp-0026.jpg ADDED

Git LFS Details

  • SHA256: a6a2057edd22576ee319b0edd923734da7ddc31db736df3f983cc83d41c966ce
  • Pointer size: 131 Bytes
  • Size of remote file: 171 kB
data/test/fp-0027.jpg ADDED

Git LFS Details

  • SHA256: 87beabc60bdfafdd3fd3d7b015a3742f32a8ece668958ef28d3dd021aa389b80
  • Pointer size: 131 Bytes
  • Size of remote file: 145 kB
data/test/fp-0028.jpg ADDED

Git LFS Details

  • SHA256: a97ee2d8e8b91566bb493cf767b0c35674667b22767edb1c7b9726b6ff22a3e1
  • Pointer size: 131 Bytes
  • Size of remote file: 107 kB
data/test/fp-0029.jpg ADDED

Git LFS Details

  • SHA256: 0cf323dea5d4858044670fed28e7cafbc21166236a1359dadb66cbd062160649
  • Pointer size: 131 Bytes
  • Size of remote file: 118 kB
data/test/fp-0030.jpg ADDED

Git LFS Details

  • SHA256: 01c531a68ad04dab6a324922f7def2af1ccb882da333567f09c86637853e5228
  • Pointer size: 131 Bytes
  • Size of remote file: 203 kB
data/test/fp-0031.jpg ADDED

Git LFS Details

  • SHA256: 52dbd949660c7f5f759a746ab480ecb2ce20633120ae5e851dbbbba1860c2321
  • Pointer size: 131 Bytes
  • Size of remote file: 147 kB
data/test/fp-0032.jpg ADDED

Git LFS Details

  • SHA256: 1a5d3b357b9c31b4843dc77d916254af03da82138af7fa524e1d1ae45b996779
  • Pointer size: 131 Bytes
  • Size of remote file: 168 kB
data/test/fp-0033.jpg ADDED

Git LFS Details

  • SHA256: 2ce6224f7e7a0c8c9bfa79458498f34ec777e98ab8bcbf021f4b397b0fc4f727
  • Pointer size: 131 Bytes
  • Size of remote file: 155 kB
data/test/fp-0034.jpg ADDED

Git LFS Details

  • SHA256: e1323d0ff90206fb92748100fce26c7dba7a95242c031115cf99cdf899a8c3c0
  • Pointer size: 131 Bytes
  • Size of remote file: 159 kB
data/test/fp-0035.jpg ADDED

Git LFS Details

  • SHA256: 0ecc68ced553638191420dc87769e5d71cfa164181b51327e690f99e4e5c09a5
  • Pointer size: 131 Bytes
  • Size of remote file: 180 kB
data/test/fp-0036.jpg ADDED

Git LFS Details

  • SHA256: 308aecee1c5bdd4f7c9e89b4d946e6c6aa6fa97ff93609d37dd5ebfb42db36a6
  • Pointer size: 131 Bytes
  • Size of remote file: 157 kB
data/test/fp-0037.jpg ADDED

Git LFS Details

  • SHA256: 62d6938f77fb078140f275d210879615cd94e1a8d10a7ddda611822c7a1d8299
  • Pointer size: 131 Bytes
  • Size of remote file: 148 kB
data/test/fp-0038.jpg ADDED

Git LFS Details

  • SHA256: 345b608b5773708c9babf4afd86d34ceda37aec4fc859c45e5c495cbbfa2de01
  • Pointer size: 131 Bytes
  • Size of remote file: 179 kB
data/test/fp-0039.jpg ADDED

Git LFS Details

  • SHA256: 7c5ee4f4151dd460b569b80939bfcf68f0d45dd248cc25f32564b84b94144dbe
  • Pointer size: 131 Bytes
  • Size of remote file: 138 kB
data/test/fp-0040.jpg ADDED

Git LFS Details

  • SHA256: cbcb57a38a3d34359e187e541e5e9fc2e417246d98bcf71fdef4164a031bb425
  • Pointer size: 131 Bytes
  • Size of remote file: 187 kB
data/test/fp-0041.jpg ADDED

Git LFS Details

  • SHA256: 33028f4a7510b44bbf9236eb46782a1ef0357d28e6d796c27b2181c7a098bc31
  • Pointer size: 131 Bytes
  • Size of remote file: 186 kB
data/test/fp-0042.jpg ADDED

Git LFS Details

  • SHA256: 90e460ff36d5758d64cf44d85fb81b05d74fb828563eb5a0964773a32119aaef
  • Pointer size: 131 Bytes
  • Size of remote file: 169 kB
data/test/fp-0043.jpg ADDED

Git LFS Details

  • SHA256: d72f849c9d90d54dcb82f45559e44d97f8df058fb8da1c52dcb1419177c20114
  • Pointer size: 131 Bytes
  • Size of remote file: 160 kB
data/test/fp-0044.jpg ADDED

Git LFS Details

  • SHA256: 0cbf1926967afae0b916da8555c70daf21c1ba638104ee4773ed6a33f38a2d33
  • Pointer size: 131 Bytes
  • Size of remote file: 170 kB
data/test/fp-0045.jpg ADDED

Git LFS Details

  • SHA256: df797d40826eb1975b1941051a961620aa02b93547d7b62b81b529765f136866
  • Pointer size: 131 Bytes
  • Size of remote file: 130 kB
data/test/fp-0046.jpg ADDED

Git LFS Details

  • SHA256: 738c45cb621e4e9e4f3601b4b99f1361ed778503da4156ef3caf5436e5b9648a
  • Pointer size: 131 Bytes
  • Size of remote file: 165 kB
data/test/fp-0047.jpg ADDED

Git LFS Details

  • SHA256: a071c68f578b959f028caf29e34871da79e578c16010e94514c0f1ccb90204ee
  • Pointer size: 131 Bytes
  • Size of remote file: 183 kB
data/test/fp-0048.jpg ADDED

Git LFS Details

  • SHA256: a08df23099f9e463b3ae887cf7f406f9e84b97ee19902badc05f2e8910a7fe9c
  • Pointer size: 131 Bytes
  • Size of remote file: 167 kB
data/test/fp-0049.jpg ADDED

Git LFS Details

  • SHA256: 02d96357e059fa38f5702b553cca1f54a1a3db35ab1e8a256489bd24a77c8cb2
  • Pointer size: 131 Bytes
  • Size of remote file: 142 kB