Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
hheiden-roots commited on
Commit
3548597
1 Parent(s): 25b539f

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +88 -0
README.md CHANGED
@@ -35,4 +35,92 @@ configs:
35
  path: data/train-*
36
  - split: dev
37
  path: data/dev-*
 
 
 
 
 
 
 
 
 
 
38
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  path: data/train-*
36
  - split: dev
37
  path: data/dev-*
38
+ license: mit
39
+ task_categories:
40
+ - question-answering
41
+ language:
42
+ - en
43
+ tags:
44
+ - webdataset
45
+ pretty_name: WebSRC
46
+ size_categories:
47
+ - 100K<n<1M
48
  ---
49
+
50
+ # Dataset Card for WebSRC v1.0
51
+ WebSRC v1.0 is a dataset for reading comprehension on structural web pages.
52
+ The task is to answer questions about web pages, which requires a system to have a comprehensive understanding of the spatial structure and logical structure.
53
+ WebSRC consists of 6.4K web pages and 400K question-answer pairs about web pages.
54
+ This cached copy of the dataset is focused on Q&A using the web screenshots (HTML and other metadata are omitted).
55
+ Questions in WebSRC were created for each segment.
56
+ Answers are either text spans from web pages or yes/no.
57
+
58
+ For more details, please refer to the paper [WebSRC: A Dataset for Web-Based Structural Reading Comprehension](https://arxiv.org/abs/2101.09465). The Leaderboard of WebSRC v1.0 can be found [here](https://x-lance.github.io/WebSRC/#).
59
+ The original [GitHub Repo](https://github.com/X-LANCE/WebSRC-Baseline/tree/master?tab=readme-ov-file) is also available.
60
+
61
+ This flat version of the dataset was specifically compiled to aid Large Multimodal Model (LMM) development, especially in digital domains that need to reason about screens.
62
+
63
+ ## Structure
64
+
65
+ - `domain`: str, broad category of the website
66
+ - `page_id`: str, unique ID for the particular page
67
+ - `question`: str, the question to answer
68
+ - `answers`: list of JSON objects, corresponding to ground truth
69
+ - `answer_start`: int, starting position of the answer
70
+ - `element_id`: int, if corresponds to a unique element this is its unique identifier
71
+ - `text`: str, the actual answer
72
+ - `image_path`: str, local path to the image
73
+ - `image`: PIL.Image, the actual image to use for the question.
74
+
75
+ ## Data Statistics
76
+
77
+ Questions are roughly divided into three categories: KV,
78
+ Compare, and Table. The detailed definitions can be found in the original
79
+ [paper](https://arxiv.org/abs/2101.09465). The numbers of websites, webpages,
80
+ and QAs corresponding to the three categories are as follows:
81
+
82
+ Type | # Websites | # Webpages | # QAs
83
+ ---- | ---------- | ---------- | -----
84
+ KV | 34 | 3,207 | 168,606
85
+ Comparison | 15 | 1,339 | 68,578
86
+ Table | 21 | 1,901 | 163,314
87
+
88
+ The statistics of the dataset splits are as follows:
89
+
90
+ Split | # Websites | # Webpages | # QAs
91
+ ----- | ---------- | ---------- | -----
92
+ Train | 50 | 4,549 | 307,315
93
+ Dev | 10 | 913 | 52,826
94
+ Test | 10 | 985 | 40,357
95
+
96
+ Note: The test split is _not_ included in this upload. See the original repo for compiling the test set, and how to obtain scores for the test split via submission.
97
+
98
+ ## Reference
99
+
100
+ If you use any source codes or datasets included in this repository in your work,
101
+ please cite the corresponding papers. The bibtex are listed below:
102
+ ```text
103
+ @inproceedings{chen-etal-2021-websrc,
104
+ title = "{W}eb{SRC}: A Dataset for Web-Based Structural Reading Comprehension",
105
+ author = "Chen, Xingyu and
106
+ Zhao, Zihan and
107
+ Chen, Lu and
108
+ Ji, JiaBao and
109
+ Zhang, Danyang and
110
+ Luo, Ao and
111
+ Xiong, Yuxuan and
112
+ Yu, Kai",
113
+ booktitle = "Proceedings of the 2021 Conference on Empirical Methods in Natural Language Processing",
114
+ month = nov,
115
+ year = "2021",
116
+ address = "Online and Punta Cana, Dominican Republic",
117
+ publisher = "Association for Computational Linguistics",
118
+ url = "https://aclanthology.org/2021.emnlp-main.343",
119
+ pages = "4173--4185",
120
+ abstract = "Web search is an essential way for humans to obtain information, but it{'}s still a great challenge for machines to understand the contents of web pages. In this paper, we introduce the task of web-based structural reading comprehension. Given a web page and a question about it, the task is to find an answer from the web page. This task requires a system not only to understand the semantics of texts but also the structure of the web page. Moreover, we proposed WebSRC, a novel Web-based Structural Reading Comprehension dataset. WebSRC consists of 400K question-answer pairs, which are collected from 6.4K web pages with corresponding HTML source code, screenshots, and metadata. Each question in WebSRC requires a certain structural understanding of a web page to answer, and the answer is either a text span on the web page or yes/no. We evaluate various strong baselines on our dataset to show the difficulty of our task. We also investigate the usefulness of structural information and visual features. Our dataset and baselines have been publicly available.",
121
+ }
122
+ ```
123
+
124
+ ## Dataset Compilation
125
+
126
+ Hunter Heidenreich; hunter (DOT) heidenreich _at_ rootsautomation *dot* com