Datasets:
totto

Languages: English
Multilinguality: monolingual
Size Categories: 100K<n<1M
Language Creators: found
Annotations Creators: expert-generated
Source Datasets: original
system
HF staff
commited on
Commit
748114f
0 Parent(s):

Update files from the datasets library (from 1.2.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.2.0

Files changed (5) hide show
  1. .gitattributes +27 -0
  2. README.md +449 -0
  3. dataset_infos.json +1 -0
  4. dummy/1.0.0/dummy_data.zip +3 -0
  5. totto.py +137 -0
.gitattributes ADDED
@@ -0,0 +1,27 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ *.7z filter=lfs diff=lfs merge=lfs -text
2
+ *.arrow filter=lfs diff=lfs merge=lfs -text
3
+ *.bin filter=lfs diff=lfs merge=lfs -text
4
+ *.bin.* filter=lfs diff=lfs merge=lfs -text
5
+ *.bz2 filter=lfs diff=lfs merge=lfs -text
6
+ *.ftz filter=lfs diff=lfs merge=lfs -text
7
+ *.gz filter=lfs diff=lfs merge=lfs -text
8
+ *.h5 filter=lfs diff=lfs merge=lfs -text
9
+ *.joblib filter=lfs diff=lfs merge=lfs -text
10
+ *.lfs.* filter=lfs diff=lfs merge=lfs -text
11
+ *.model filter=lfs diff=lfs merge=lfs -text
12
+ *.msgpack filter=lfs diff=lfs merge=lfs -text
13
+ *.onnx filter=lfs diff=lfs merge=lfs -text
14
+ *.ot filter=lfs diff=lfs merge=lfs -text
15
+ *.parquet filter=lfs diff=lfs merge=lfs -text
16
+ *.pb filter=lfs diff=lfs merge=lfs -text
17
+ *.pt filter=lfs diff=lfs merge=lfs -text
18
+ *.pth filter=lfs diff=lfs merge=lfs -text
19
+ *.rar filter=lfs diff=lfs merge=lfs -text
20
+ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
21
+ *.tar.* filter=lfs diff=lfs merge=lfs -text
22
+ *.tflite filter=lfs diff=lfs merge=lfs -text
23
+ *.tgz filter=lfs diff=lfs merge=lfs -text
24
+ *.xz filter=lfs diff=lfs merge=lfs -text
25
+ *.zip filter=lfs diff=lfs merge=lfs -text
26
+ *.zstandard filter=lfs diff=lfs merge=lfs -text
27
+ *tfevents* filter=lfs diff=lfs merge=lfs -text
README.md ADDED
@@ -0,0 +1,449 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - found
6
+ languages:
7
+ - en
8
+ licenses:
9
+ - cc-by-sa-3-0
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 100K<n<1M
14
+ source_datasets:
15
+ - original
16
+ task_categories:
17
+ - conditional-text-generation
18
+ task_ids:
19
+ - table-to-text
20
+ ---
21
+
22
+ # Dataset Card Creation Guide
23
+
24
+ ## Table of Contents
25
+ - [Dataset Description](#dataset-description)
26
+ - [Dataset Summary](#dataset-summary)
27
+ - [Supported Tasks](#supported-tasks-and-leaderboards)
28
+ - [Languages](#languages)
29
+ - [Dataset Structure](#dataset-structure)
30
+ - [Data Instances](#data-instances)
31
+ - [Data Fields](#data-instances)
32
+ - [Data Splits](#data-instances)
33
+ - [Dataset Creation](#dataset-creation)
34
+ - [Curation Rationale](#curation-rationale)
35
+ - [Source Data](#source-data)
36
+ - [Annotations](#annotations)
37
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
38
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
39
+ - [Social Impact of Dataset](#social-impact-of-dataset)
40
+ - [Discussion of Biases](#discussion-of-biases)
41
+ - [Other Known Limitations](#other-known-limitations)
42
+ - [Additional Information](#additional-information)
43
+ - [Dataset Curators](#dataset-curators)
44
+ - [Licensing Information](#licensing-information)
45
+ - [Citation Information](#citation-information)
46
+
47
+ ## Dataset Description
48
+
49
+ - **Homepage:** None
50
+ - **Repository:** https://github.com/google-research-datasets/ToTTo
51
+ - **Paper:** https://arxiv.org/abs/2004.14373
52
+ - **Leaderboard:** https://github.com/google-research-datasets/ToTTo#leaderboard
53
+ - **Point of Contact:** totto@google.com
54
+
55
+ ### Dataset Summary
56
+
57
+ [More Information Needed]
58
+
59
+ ### Supported Tasks and Leaderboards
60
+
61
+ [More Information Needed]
62
+
63
+ ### Languages
64
+
65
+ [More Information Needed]
66
+
67
+ ## Dataset Structure
68
+
69
+ ### Data Instances
70
+
71
+ ```
72
+ DatasetDict({
73
+ train: Dataset({
74
+ features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
75
+ num_rows: 120761
76
+ })
77
+ validation: Dataset({
78
+ features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
79
+ num_rows: 7700
80
+ })
81
+ test: Dataset({
82
+ features: ['id', 'table_page_title', 'table_webpage_url', 'table_section_title', 'table_section_text', 'table', 'highlighted_cells', 'example_id', 'sentence_annotations', 'overlap_subset'],
83
+ num_rows: 7700
84
+ })
85
+ })
86
+ ```
87
+
88
+ ### Data Fields
89
+
90
+ A sample training set is provided below
91
+
92
+ ```
93
+ {'example_id': '1762238357686640028',
94
+ 'highlighted_cells': [[13, 2]],
95
+ 'id': 0,
96
+ 'overlap_subset': 'none',
97
+ 'sentence_annotations': {'final_sentence': ['A Favorita is the telenovela aired in the 9 pm timeslot.'],
98
+ 'original_sentence': ['It is also the first telenovela by the writer to air in the 9 pm timeslot.'],
99
+ 'sentence_after_ambiguity': ['A Favorita is the telenovela aired in the 9 pm timeslot.'],
100
+ 'sentence_after_deletion': ['It is the telenovela air in the 9 pm timeslot.']},
101
+ 'table': [[{'column_span': 1, 'is_header': True, 'row_span': 1, 'value': '#'},
102
+ {'column_span': 1, 'is_header': True, 'row_span': 1, 'value': 'Run'},
103
+ {'column_span': 1, 'is_header': True, 'row_span': 1, 'value': 'Title'},
104
+ {'column_span': 1, 'is_header': True, 'row_span': 1, 'value': 'Chapters'},
105
+ {'column_span': 1, 'is_header': True, 'row_span': 1, 'value': 'Author'},
106
+ {'column_span': 1, 'is_header': True, 'row_span': 1, 'value': 'Director'},
107
+ {'column_span': 1,
108
+ 'is_header': True,
109
+ 'row_span': 1,
110
+ 'value': 'Ibope Rating'}],
111
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '59'},
112
+ {'column_span': 1,
113
+ 'is_header': False,
114
+ 'row_span': 1,
115
+ 'value': 'June 5, 2000— February 2, 2001'},
116
+ {'column_span': 1,
117
+ 'is_header': False,
118
+ 'row_span': 1,
119
+ 'value': 'Laços de Família'},
120
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '209'},
121
+ {'column_span': 1,
122
+ 'is_header': False,
123
+ 'row_span': 1,
124
+ 'value': 'Manoel Carlos'},
125
+ {'column_span': 1,
126
+ 'is_header': False,
127
+ 'row_span': 1,
128
+ 'value': 'Ricardo Waddington'},
129
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '44.9'}],
130
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '60'},
131
+ {'column_span': 1,
132
+ 'is_header': False,
133
+ 'row_span': 1,
134
+ 'value': 'February 5, 2001— September 28, 2001'},
135
+ {'column_span': 1,
136
+ 'is_header': False,
137
+ 'row_span': 1,
138
+ 'value': 'Porto dos Milagres'},
139
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '203'},
140
+ {'column_span': 1,
141
+ 'is_header': False,
142
+ 'row_span': 1,
143
+ 'value': 'Aguinaldo Silva Ricardo Linhares'},
144
+ {'column_span': 1,
145
+ 'is_header': False,
146
+ 'row_span': 1,
147
+ 'value': 'Marcos Paulo Simões'},
148
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '44.6'}],
149
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '61'},
150
+ {'column_span': 1,
151
+ 'is_header': False,
152
+ 'row_span': 1,
153
+ 'value': 'October 1, 2001— June 14, 2002'},
154
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': 'O Clone'},
155
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '221'},
156
+ {'column_span': 1,
157
+ 'is_header': False,
158
+ 'row_span': 1,
159
+ 'value': 'Glória Perez'},
160
+ {'column_span': 1,
161
+ 'is_header': False,
162
+ 'row_span': 1,
163
+ 'value': 'Jayme Monjardim'},
164
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '47.0'}],
165
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '62'},
166
+ {'column_span': 1,
167
+ 'is_header': False,
168
+ 'row_span': 1,
169
+ 'value': 'June 17, 2002— February 14, 2003'},
170
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': 'Esperança'},
171
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '209'},
172
+ {'column_span': 1,
173
+ 'is_header': False,
174
+ 'row_span': 1,
175
+ 'value': 'Benedito Ruy Barbosa'},
176
+ {'column_span': 1,
177
+ 'is_header': False,
178
+ 'row_span': 1,
179
+ 'value': 'Luiz Fernando'},
180
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '37.7'}],
181
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '63'},
182
+ {'column_span': 1,
183
+ 'is_header': False,
184
+ 'row_span': 1,
185
+ 'value': 'February 17, 2003— October 10, 2003'},
186
+ {'column_span': 1,
187
+ 'is_header': False,
188
+ 'row_span': 1,
189
+ 'value': 'Mulheres Apaixonadas'},
190
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '203'},
191
+ {'column_span': 1,
192
+ 'is_header': False,
193
+ 'row_span': 1,
194
+ 'value': 'Manoel Carlos'},
195
+ {'column_span': 1,
196
+ 'is_header': False,
197
+ 'row_span': 1,
198
+ 'value': 'Ricardo Waddington'},
199
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '46.6'}],
200
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '64'},
201
+ {'column_span': 1,
202
+ 'is_header': False,
203
+ 'row_span': 1,
204
+ 'value': 'October 13, 2003— June 25, 2004'},
205
+ {'column_span': 1,
206
+ 'is_header': False,
207
+ 'row_span': 1,
208
+ 'value': 'Celebridade'},
209
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '221'},
210
+ {'column_span': 1,
211
+ 'is_header': False,
212
+ 'row_span': 1,
213
+ 'value': 'Gilberto Braga'},
214
+ {'column_span': 1,
215
+ 'is_header': False,
216
+ 'row_span': 1,
217
+ 'value': 'Dennis Carvalho'},
218
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '46.0'}],
219
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '65'},
220
+ {'column_span': 1,
221
+ 'is_header': False,
222
+ 'row_span': 1,
223
+ 'value': 'June 28, 2004— March 11, 2005'},
224
+ {'column_span': 1,
225
+ 'is_header': False,
226
+ 'row_span': 1,
227
+ 'value': 'Senhora do Destino'},
228
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '221'},
229
+ {'column_span': 1,
230
+ 'is_header': False,
231
+ 'row_span': 1,
232
+ 'value': 'Aguinaldo Silva'},
233
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': 'Wolf Maya'},
234
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '50.4'}],
235
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '66'},
236
+ {'column_span': 1,
237
+ 'is_header': False,
238
+ 'row_span': 1,
239
+ 'value': 'March 14, 2005— November 4, 2005'},
240
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': 'América'},
241
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '203'},
242
+ {'column_span': 1,
243
+ 'is_header': False,
244
+ 'row_span': 1,
245
+ 'value': 'Glória Perez'},
246
+ {'column_span': 1,
247
+ 'is_header': False,
248
+ 'row_span': 1,
249
+ 'value': 'Jayme Monjardim Marcos Schechtman'},
250
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '49.4'}],
251
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '67'},
252
+ {'column_span': 1,
253
+ 'is_header': False,
254
+ 'row_span': 1,
255
+ 'value': 'November 7, 2005— July 7, 2006'},
256
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': 'Belíssima'},
257
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '209'},
258
+ {'column_span': 1,
259
+ 'is_header': False,
260
+ 'row_span': 1,
261
+ 'value': 'Sílvio de Abreu'},
262
+ {'column_span': 1,
263
+ 'is_header': False,
264
+ 'row_span': 1,
265
+ 'value': 'Denise Saraceni'},
266
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '48.5'}],
267
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '68'},
268
+ {'column_span': 1,
269
+ 'is_header': False,
270
+ 'row_span': 1,
271
+ 'value': 'July 10, 2006— March 2, 2007'},
272
+ {'column_span': 1,
273
+ 'is_header': False,
274
+ 'row_span': 1,
275
+ 'value': 'Páginas da Vida'},
276
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '203'},
277
+ {'column_span': 1,
278
+ 'is_header': False,
279
+ 'row_span': 1,
280
+ 'value': 'Manoel Carlos'},
281
+ {'column_span': 1,
282
+ 'is_header': False,
283
+ 'row_span': 1,
284
+ 'value': 'Jayme Monjardim'},
285
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '46.8'}],
286
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '69'},
287
+ {'column_span': 1,
288
+ 'is_header': False,
289
+ 'row_span': 1,
290
+ 'value': 'March 5, 2007— September 28, 2007'},
291
+ {'column_span': 1,
292
+ 'is_header': False,
293
+ 'row_span': 1,
294
+ 'value': 'Paraíso Tropical'},
295
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '179'},
296
+ {'column_span': 1,
297
+ 'is_header': False,
298
+ 'row_span': 1,
299
+ 'value': 'Gilberto Braga Ricardo Linhares'},
300
+ {'column_span': 1,
301
+ 'is_header': False,
302
+ 'row_span': 1,
303
+ 'value': 'Dennis Carvalho'},
304
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '42.8'}],
305
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '70'},
306
+ {'column_span': 1,
307
+ 'is_header': False,
308
+ 'row_span': 1,
309
+ 'value': 'October 1, 2007— May 31, 2008'},
310
+ {'column_span': 1,
311
+ 'is_header': False,
312
+ 'row_span': 1,
313
+ 'value': 'Duas Caras'},
314
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '210'},
315
+ {'column_span': 1,
316
+ 'is_header': False,
317
+ 'row_span': 1,
318
+ 'value': 'Aguinaldo Silva'},
319
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': 'Wolf Maya'},
320
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '41.1'}],
321
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '71'},
322
+ {'column_span': 1,
323
+ 'is_header': False,
324
+ 'row_span': 1,
325
+ 'value': 'June 2, 2008— January 16, 2009'},
326
+ {'column_span': 1,
327
+ 'is_header': False,
328
+ 'row_span': 1,
329
+ 'value': 'A Favorita'},
330
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '197'},
331
+ {'column_span': 1,
332
+ 'is_header': False,
333
+ 'row_span': 1,
334
+ 'value': 'João Emanuel Carneiro'},
335
+ {'column_span': 1,
336
+ 'is_header': False,
337
+ 'row_span': 1,
338
+ 'value': 'Ricardo Waddington'},
339
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '39.5'}],
340
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '72'},
341
+ {'column_span': 1,
342
+ 'is_header': False,
343
+ 'row_span': 1,
344
+ 'value': 'January 19, 2009— September 11, 2009'},
345
+ {'column_span': 1,
346
+ 'is_header': False,
347
+ 'row_span': 1,
348
+ 'value': 'Caminho das Índias'},
349
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '203'},
350
+ {'column_span': 1,
351
+ 'is_header': False,
352
+ 'row_span': 1,
353
+ 'value': 'Glória Perez'},
354
+ {'column_span': 1,
355
+ 'is_header': False,
356
+ 'row_span': 1,
357
+ 'value': 'Marcos Schechtman'},
358
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '38.8'}],
359
+ [{'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '73'},
360
+ {'column_span': 1,
361
+ 'is_header': False,
362
+ 'row_span': 1,
363
+ 'value': 'September 14, 2009— May 14, 2010'},
364
+ {'column_span': 1,
365
+ 'is_header': False,
366
+ 'row_span': 1,
367
+ 'value': 'Viver a Vida'},
368
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '209'},
369
+ {'column_span': 1,
370
+ 'is_header': False,
371
+ 'row_span': 1,
372
+ 'value': 'Manoel Carlos'},
373
+ {'column_span': 1,
374
+ 'is_header': False,
375
+ 'row_span': 1,
376
+ 'value': 'Jayme Monjardim'},
377
+ {'column_span': 1, 'is_header': False, 'row_span': 1, 'value': '35.6'}]],
378
+ 'table_page_title': 'List of 8/9 PM telenovelas of Rede Globo',
379
+ 'table_section_text': '',
380
+ 'table_section_title': '2000s',
381
+ 'table_webpage_url': 'http://en.wikipedia.org/wiki/List_of_8/9_PM_telenovelas_of_Rede_Globo'}
382
+ ```
383
+
384
+ Please note that in test set sentence annotations are not available and thus values inside `sentence_annotations` can be safely ignored.
385
+
386
+ ### Data Splits
387
+
388
+ [More Information Needed]
389
+ ## Dataset Creation
390
+
391
+ ### Curation Rationale
392
+
393
+ [More Information Needed]
394
+
395
+ ### Source Data
396
+
397
+ [More Information Needed]
398
+
399
+ #### Initial Data Collection and Normalization
400
+
401
+ [More Information Needed]
402
+
403
+ #### Who are the source language producers?
404
+
405
+ [More Information Needed]
406
+
407
+ ### Annotations
408
+
409
+ [More Information Needed]
410
+
411
+ #### Annotation process
412
+
413
+ [More Information Needed]
414
+
415
+ #### Who are the annotators?
416
+
417
+ [More Information Needed]
418
+
419
+ ### Personal and Sensitive Information
420
+
421
+ [More Information Needed]
422
+
423
+ ## Considerations for Using the Data
424
+
425
+ ### Social Impact of Dataset
426
+
427
+ [More Information Needed]
428
+
429
+ ### Discussion of Biases
430
+
431
+ [More Information Needed]
432
+
433
+ ### Other Known Limitations
434
+
435
+ [More Information Needed]
436
+
437
+ ## Additional Information
438
+
439
+ ### Dataset Curators
440
+
441
+ [More Information Needed]
442
+
443
+ ### Licensing Information
444
+
445
+ [More Information Needed]
446
+
447
+ ### Citation Information
448
+
449
+ [More Information Needed]
dataset_infos.json ADDED
@@ -0,0 +1 @@
 
1
+ {"default": {"description": "ToTTo is an open-domain English table-to-text dataset with over 120,000 training examples that proposes a controlled generation task: given a Wikipedia table and a set of highlighted table cells, produce a one-sentence description.\n", "citation": "@inproceedings{parikh2020totto,\n title={{ToTTo}: A Controlled Table-To-Text Generation Dataset},\n author={Parikh, Ankur P and Wang, Xuezhi and Gehrmann, Sebastian and Faruqui, Manaal and Dhingra, Bhuwan and Yang, Diyi and Das, Dipanjan},\n booktitle={Proceedings of EMNLP},\n year={2020}\n }\n", "homepage": "", "license": "", "features": {"id": {"dtype": "int32", "id": null, "_type": "Value"}, "table_page_title": {"dtype": "string", "id": null, "_type": "Value"}, "table_webpage_url": {"dtype": "string", "id": null, "_type": "Value"}, "table_section_title": {"dtype": "string", "id": null, "_type": "Value"}, "table_section_text": {"dtype": "string", "id": null, "_type": "Value"}, "table": [[{"column_span": {"dtype": "int32", "id": null, "_type": "Value"}, "is_header": {"dtype": "bool", "id": null, "_type": "Value"}, "row_span": {"dtype": "int32", "id": null, "_type": "Value"}, "value": {"dtype": "string", "id": null, "_type": "Value"}}]], "highlighted_cells": {"feature": {"feature": {"dtype": "int32", "id": null, "_type": "Value"}, "length": -1, "id": null, "_type": "Sequence"}, "length": -1, "id": null, "_type": "Sequence"}, "example_id": {"dtype": "string", "id": null, "_type": "Value"}, "sentence_annotations": {"feature": {"original_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "sentence_after_deletion": {"dtype": "string", "id": null, "_type": "Value"}, "sentence_after_ambiguity": {"dtype": "string", "id": null, "_type": "Value"}, "final_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "length": -1, "id": null, "_type": "Sequence"}, "overlap_subset": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "totto", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 652754806, "num_examples": 120761, "dataset_name": "totto"}, "validation": {"name": "validation", "num_bytes": 47277039, "num_examples": 7700, "dataset_name": "totto"}, "test": {"name": "test", "num_bytes": 40883586, "num_examples": 7700, "dataset_name": "totto"}}, "download_checksums": {"https://storage.googleapis.com/totto/totto_data.zip": {"num_bytes": 187724372, "checksum": "0aab72597057394514fd9659745fd2b318d1a64bf0b2ca1b2c339abe0692fdf2"}}, "download_size": 187724372, "post_processing_size": null, "dataset_size": 740915431, "size_in_bytes": 928639803}}
dummy/1.0.0/dummy_data.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b57038271f6118f6e6106658f421890a344a9cf28b633a9ad14f1d46eac6ccad
3
+ size 24427
totto.py ADDED
@@ -0,0 +1,137 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 HuggingFace Datasets Authors.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+
16
+ # Lint as: python3
17
+ import json
18
+ import os
19
+
20
+ import datasets
21
+
22
+
23
+ _DESCRIPTION = """\
24
+ ToTTo is an open-domain English table-to-text dataset with over 120,000 training examples that proposes a controlled generation task: given a Wikipedia table and a set of highlighted table cells, produce a one-sentence description.
25
+ """
26
+ _HOMEPAGE_URL = ""
27
+ _URL = "https://storage.googleapis.com/totto/totto_data.zip"
28
+ _CITATION = """\
29
+ @inproceedings{parikh2020totto,
30
+ title={{ToTTo}: A Controlled Table-To-Text Generation Dataset},
31
+ author={Parikh, Ankur P and Wang, Xuezhi and Gehrmann, Sebastian and Faruqui, Manaal and Dhingra, Bhuwan and Yang, Diyi and Das, Dipanjan},
32
+ booktitle={Proceedings of EMNLP},
33
+ year={2020}
34
+ }
35
+ """
36
+
37
+
38
+ class Totto(datasets.GeneratorBasedBuilder):
39
+ VERSION = datasets.Version("1.0.0")
40
+
41
+ def _info(self):
42
+ return datasets.DatasetInfo(
43
+ description=_DESCRIPTION,
44
+ features=datasets.Features(
45
+ {
46
+ "id": datasets.Value("int32"),
47
+ "table_page_title": datasets.Value("string"),
48
+ "table_webpage_url": datasets.Value("string"),
49
+ "table_section_title": datasets.Value("string"),
50
+ "table_section_text": datasets.Value("string"),
51
+ "table": [
52
+ [
53
+ {
54
+ "column_span": datasets.Value("int32"),
55
+ "is_header": datasets.Value("bool"),
56
+ "row_span": datasets.Value("int32"),
57
+ "value": datasets.Value("string"),
58
+ }
59
+ ]
60
+ ],
61
+ "highlighted_cells": datasets.Sequence(datasets.Sequence(datasets.Value("int32"))),
62
+ "example_id": datasets.Value("string"),
63
+ "sentence_annotations": datasets.Sequence(
64
+ {
65
+ "original_sentence": datasets.Value("string"),
66
+ "sentence_after_deletion": datasets.Value("string"),
67
+ "sentence_after_ambiguity": datasets.Value("string"),
68
+ "final_sentence": datasets.Value("string"),
69
+ }
70
+ ),
71
+ "overlap_subset": datasets.Value("string"),
72
+ },
73
+ ),
74
+ supervised_keys=None,
75
+ homepage=_HOMEPAGE_URL,
76
+ citation=_CITATION,
77
+ )
78
+
79
+ def _split_generators(self, dl_manager):
80
+ path = dl_manager.download_and_extract(_URL)
81
+ return [
82
+ datasets.SplitGenerator(
83
+ name=datasets.Split.TRAIN,
84
+ gen_kwargs={
85
+ "datapath": os.path.join(path, "totto_data/totto_train_data.jsonl"),
86
+ "datatype": "train",
87
+ },
88
+ ),
89
+ datasets.SplitGenerator(
90
+ name=datasets.Split.VALIDATION,
91
+ gen_kwargs={
92
+ "datapath": os.path.join(path, "totto_data/totto_dev_data.jsonl"),
93
+ "datatype": "valid",
94
+ },
95
+ ),
96
+ datasets.SplitGenerator(
97
+ name=datasets.Split.TEST,
98
+ gen_kwargs={
99
+ "datapath": os.path.join(path, "totto_data/unlabeled_totto_test_data.jsonl"),
100
+ "datatype": "test",
101
+ },
102
+ ),
103
+ ]
104
+
105
+ def _generate_examples(self, datapath, datatype):
106
+ with open(datapath, "r", encoding="utf-8") as json_file:
107
+ json_list = list(json_file)
108
+
109
+ for example_counter, json_str in enumerate(json_list):
110
+ result = json.loads(json_str)
111
+ response = {
112
+ "id": example_counter,
113
+ "table_page_title": result["table_page_title"],
114
+ "table_webpage_url": result["table_webpage_url"],
115
+ "table_section_title": result["table_section_title"],
116
+ "table_section_text": result["table_section_text"],
117
+ "table": result["table"],
118
+ "highlighted_cells": result["highlighted_cells"],
119
+ "example_id": str(result["example_id"]),
120
+ }
121
+ if datatype == "train":
122
+ response["overlap_subset"] = "none"
123
+ else:
124
+ response["overlap_subset"] = str(result["overlap_subset"])
125
+
126
+ if datatype == "test":
127
+ response["sentence_annotations"] = [
128
+ {
129
+ "original_sentence": "none",
130
+ "sentence_after_deletion": "none",
131
+ "sentence_after_ambiguity": "none",
132
+ "final_sentence": "none",
133
+ }
134
+ ]
135
+ else:
136
+ response["sentence_annotations"] = result["sentence_annotations"]
137
+ yield example_counter, response