researchgroup542 commited on
Commit
06f8d41
·
verified ·
1 Parent(s): bb4ffed

CompTSRBench: 8K train / 2K test

Browse files
README.md ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-4.0
3
+ task_categories:
4
+ - image-to-text
5
+ language:
6
+ - en
7
+ tags:
8
+ - table-structure-recognition
9
+ - table-recognition
10
+ - html
11
+ - document-understanding
12
+ pretty_name: CompTSRBench
13
+ size_categories:
14
+ - 1K<n<10K
15
+ configs:
16
+ - config_name: default
17
+ data_files:
18
+ - split: train
19
+ path: data/train-*
20
+ - split: test
21
+ path: data/test-*
22
+ dataset_info:
23
+ features:
24
+ - name: id
25
+ dtype: string
26
+ - name: split
27
+ dtype: string
28
+ - name: pattern
29
+ dtype: int64
30
+ - name: image
31
+ dtype: image
32
+ - name: html
33
+ dtype: string
34
+ splits:
35
+ - name: train
36
+ num_examples: 8000
37
+ - name: test
38
+ num_examples: 2000
39
+ ---
40
+
41
+ # CompTSRBench
42
+
43
+ CompTSRBench is a benchmark of 10,000 structurally complex synthetic tables for table structure recognition (image → HTML).
44
+ Each table pairs a rendered image with its ground-truth HTML. The tables cover 25 canonical structural patterns
45
+ (hierarchical headers, row and column spans, gridless regions and more) across application domains such as finance,
46
+ science, education and healthcare.
47
+
48
+ | Split | Tables |
49
+ |---|---|
50
+ | train | 8,000 |
51
+ | test | 2,000 |
52
+
53
+ Every pattern appears in both splits, with at least 40 test tables per pattern.
54
+
55
+ ## Fields
56
+
57
+ | Field | Type | Description |
58
+ |---|---|---|
59
+ | `id` | string | Table identifier |
60
+ | `split` | string | `train` or `test` |
61
+ | `pattern` | int | Canonical structural pattern (1–25) |
62
+ | `image` | image | Rendered table image |
63
+ | `html` | string | Ground-truth table HTML (minified, no styling); headers are marked with `<th>` |
64
+
65
+ ## Structural statistics (all 10K tables)
66
+
67
+ - 81.4% contain column spans, 89.5% row spans, 58.4% multi-level headers
68
+ - On average 17.3 merged cells per table
69
+
70
+ ## Usage
71
+
72
+ ```python
73
+ from datasets import load_dataset
74
+
75
+ ds = load_dataset("researchgroup542/Table_Dataset")
76
+ example = ds["test"][0]
77
+ example["image"] # PIL image
78
+ example["html"] # ground-truth HTML
79
+ ```
80
+
81
+ ## Evaluation
82
+
83
+ We report TEDS, TEDS-Struct and the Triple Metric Score (TMS), a structure-first metric that checks each cell's position,
84
+ header context and content in that order. See the paper for details.
85
+
86
+ ## License
87
+
88
+ CC BY 4.0. All table content is synthetically generated and does not refer to real individuals or organizations.
data/test-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3de822b00778608404c760bf9f934d10fae3ac8bc1fad7edc89c720a76044287
3
+ size 65788845
data/test-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2d61e02247af69e70b6cc75e8aaa03d7a87269c4a30ecd6e972de046aa19ff4c
3
+ size 66484363
data/train-00000-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:02568c1468fe61d24d2713e787fefc65fae55a59a677ef5f77eb22bf28fb7e75
3
+ size 66465845
data/train-00001-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e63d2ca043e6acb9e455cd4f15bcca5fbc5caedd8b41302b8a2147c5a098e7eb
3
+ size 64920548
data/train-00002-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f5607597a2ca962dc427f3b599d2925ee088e7161bdb44683d5ffb96a9b07e56
3
+ size 65365732
data/train-00003-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b218bf406d04ffface66b4da3baa7b6cbbe93c68939507cd1e4c1ab917da683e
3
+ size 67182572
data/train-00004-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d91c221d38f43f98f89a7a02824a9e8035519ebb6b4fd3e434240ba3a68efc6d
3
+ size 66912989
data/train-00005-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8963f03a0cc48c212e3c1e268a1d55d20393f59a3df0b6836c3188d94c8657b3
3
+ size 66863487
data/train-00006-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aae033f3f7b97fe225c5c95797b46a9dea02c465910ab5a8026ac226373ebe5d
3
+ size 66388786
data/train-00007-of-00008.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:185a9031f6eb08032d1404abdfb9fe416a759a748b17bdfb32f2e38dcda1d918
3
+ size 66380608