parquet-converter commited on
Commit
5df2758
1 Parent(s): 1d41f28

Update parquet files

Browse files
.gitattributes DELETED
@@ -1,27 +0,0 @@
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 DELETED
@@ -1,670 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - unknown
4
- language_creators:
5
- - unknown
6
- language:
7
- - en
8
- license:
9
- - cc-by-nc-4.0
10
- multilinguality:
11
- - unknown
12
- size_categories:
13
- - unknown
14
- source_datasets:
15
- - original
16
- task_categories:
17
- - table-to-text
18
- task_ids: []
19
- pretty_name: web_nlg
20
- tags:
21
- - data-to-text
22
- ---
23
-
24
- # Dataset Card for GEM/web_nlg
25
-
26
- ## Dataset Description
27
-
28
- - **Homepage:** https://webnlg-challenge.loria.fr/
29
- - **Repository:** https://gitlab.com/shimorina/webnlg-dataset
30
- - **Paper:** http://www.aclweb.org/anthology/P17-1017, [WebNLG Challenge 2017 Report
31
- - **Leaderboard:** https://beng.dice-research.org/gerbil/
32
- - **Point of Contact:** [Needs More Information]
33
-
34
- ### Link to Main Data Card
35
-
36
- You can find the main data card on the [GEM Website](https://gem-benchmark.com/data_cards/web_nlg).
37
-
38
- ### Dataset Summary
39
-
40
- WebNLG is a bi-lingual dataset (English, Russian) of parallel DBpedia triple sets and short texts that cover about 450 different DBpedia properties. The WebNLG data was originally created to promote the development of RDF verbalisers able to generate short text and to handle micro-planning (i.e., sentence segmentation and ordering, referring expression generation, aggregation); the goal of the task is to generate texts starting from 1 to 7 input triples which have entities in common (so the input is actually a connected Knowledge Graph). The dataset contains about 17,000 triple sets and 45,000 crowdsourced texts in English, and 7,000 triples sets and 19,000 crowdsourced texts in Russian. A challenging test set section with entities and/or properties that have not been seen at training time is available.
41
-
42
- You can load the dataset via:
43
- ```
44
- import datasets
45
- data = datasets.load_dataset('GEM/web_nlg')
46
- ```
47
- The data loader can be found [here](https://huggingface.co/datasets/GEM/web_nlg).
48
-
49
- #### website
50
- [Website](https://webnlg-challenge.loria.fr/)
51
-
52
- #### paper
53
- [First Dataset Release](http://www.aclweb.org/anthology/P17-1017), [WebNLG Challenge 2017 Report](https://www.aclweb.org/anthology/W17-3518/), [WebNLG Challenge 2020 Report](https://webnlg-challenge.loria.fr/files/2020.webnlg-papers.7.pdf)
54
-
55
- #### authors
56
- The principle curator of the dataset is Anastasia Shimorina (Université de Lorraine / LORIA, France). Throughout the WebNLG releases, several people contributed to their construction: Claire Gardent (CNRS / LORIA, France), Shashi Narayan (Google, UK), Laura Perez-Beltrachini (University of Edinburgh, UK), Elena Khasanova, and Thiago Castro Ferreira (Federal University of Minas Gerais, Brazil).
57
-
58
- ## Dataset Overview
59
-
60
- ### Where to find the Data and its Documentation
61
-
62
- #### Webpage
63
-
64
- <!-- info: What is the webpage for the dataset (if it exists)? -->
65
- <!-- scope: telescope -->
66
- [Website](https://webnlg-challenge.loria.fr/)
67
-
68
- #### Download
69
-
70
- <!-- info: What is the link to where the original dataset is hosted? -->
71
- <!-- scope: telescope -->
72
- [Gitlab](https://gitlab.com/shimorina/webnlg-dataset)
73
-
74
- #### Paper
75
-
76
- <!-- info: What is the link to the paper describing the dataset (open access preferred)? -->
77
- <!-- scope: telescope -->
78
- [First Dataset Release](http://www.aclweb.org/anthology/P17-1017), [WebNLG Challenge 2017 Report](https://www.aclweb.org/anthology/W17-3518/), [WebNLG Challenge 2020 Report](https://webnlg-challenge.loria.fr/files/2020.webnlg-papers.7.pdf)
79
-
80
- #### BibTex
81
-
82
- <!-- info: Provide the BibTex-formatted reference for the dataset. Please use the correct published version (ACL anthology, etc.) instead of google scholar created Bibtex. -->
83
- <!-- scope: microscope -->
84
- Initial release of the dataset:
85
- ```
86
- @inproceedings{gardent2017creating,
87
- author = "Gardent, Claire
88
- and Shimorina, Anastasia
89
- and Narayan, Shashi
90
- and Perez-Beltrachini, Laura",
91
- title = "Creating Training Corpora for NLG Micro-Planners",
92
- booktitle = "Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)",
93
- year = "2017",
94
- publisher = "Association for Computational Linguistics",
95
- pages = "179--188",
96
- location = "Vancouver, Canada",
97
- doi = "10.18653/v1/P17-1017",
98
- url = "http://www.aclweb.org/anthology/P17-1017"
99
- }
100
- ```
101
-
102
- The latest version 3.0:
103
- ```
104
- @inproceedings{castro-ferreira20:bilin-bi-direc-webnl-shared,
105
- title={The 2020 Bilingual, Bi-Directional WebNLG+ Shared Task Overview and Evaluation Results (WebNLG+ 2020)},
106
- author={Castro Ferreira, Thiago and
107
- Gardent, Claire and
108
- Ilinykh, Nikolai and
109
- van der Lee, Chris and
110
- Mille, Simon and
111
- Moussallem, Diego and
112
- Shimorina, Anastasia},
113
- booktitle = {Proceedings of the 3rd WebNLG Workshop on Natural Language Generation from the Semantic Web (WebNLG+ 2020)},
114
- pages = "55--76",
115
- year = 2020,
116
- address = {Dublin, Ireland (Virtual)},
117
- publisher = {Association for Computational Linguistics}}
118
- ```
119
-
120
- #### Contact Email
121
-
122
- <!-- info: If known, provide the email of at least one person the reader can contact for questions about the dataset. -->
123
- <!-- scope: periscope -->
124
- webnlg-challenge@inria.fr
125
-
126
- #### Has a Leaderboard?
127
-
128
- <!-- info: Does the dataset have an active leaderboard? -->
129
- <!-- scope: telescope -->
130
- yes
131
-
132
- #### Leaderboard Link
133
-
134
- <!-- info: Provide a link to the leaderboard. -->
135
- <!-- scope: periscope -->
136
- [Website](https://beng.dice-research.org/gerbil/)
137
-
138
- #### Leaderboard Details
139
-
140
- <!-- info: Briefly describe how the leaderboard evaluates models. -->
141
- <!-- scope: microscope -->
142
- The model outputs are evaluated against the crowdsourced references; the leaderboard reports BLEU-4, METEOR, chrF++, TER, BERTScore and BLEURT scores.
143
-
144
-
145
- ### Languages and Intended Use
146
-
147
- #### Multilingual?
148
-
149
- <!-- quick -->
150
- <!-- info: Is the dataset multilingual? -->
151
- <!-- scope: telescope -->
152
- yes
153
-
154
- #### Covered Languages
155
-
156
- <!-- quick -->
157
- <!-- info: What languages/dialects are covered in the dataset? -->
158
- <!-- scope: telescope -->
159
- `Russian`, `English`
160
-
161
- #### License
162
-
163
- <!-- quick -->
164
- <!-- info: What is the license of the dataset? -->
165
- <!-- scope: telescope -->
166
- cc-by-nc-4.0: Creative Commons Attribution Non Commercial 4.0 International
167
-
168
- #### Intended Use
169
-
170
- <!-- info: What is the intended use of the dataset? -->
171
- <!-- scope: microscope -->
172
- The WebNLG dataset was created to promote the development (_i_) of RDF verbalisers and (_ii_) of microplanners able to handle a wide range of linguistic constructions. The dataset aims at covering knowledge in different domains ("categories"). The same properties and entities can appear in several categories.
173
-
174
-
175
- #### Primary Task
176
-
177
- <!-- info: What primary task does the dataset support? -->
178
- <!-- scope: telescope -->
179
- Data-to-Text
180
-
181
- #### Communicative Goal
182
-
183
- <!-- quick -->
184
- <!-- info: Provide a short description of the communicative goal of a model trained for this task on this dataset. -->
185
- <!-- scope: periscope -->
186
- A model should verbalize all and only the provided input triples in natural language.
187
-
188
-
189
- ### Credit
190
-
191
- #### Curation Organization Type(s)
192
-
193
- <!-- info: In what kind of organization did the dataset curation happen? -->
194
- <!-- scope: telescope -->
195
- `academic`
196
-
197
- #### Curation Organization(s)
198
-
199
- <!-- info: Name the organization(s). -->
200
- <!-- scope: periscope -->
201
- Université de Lorraine / LORIA, France, CNRS / LORIA, France, University of Edinburgh, UK, Federal University of Minas Gerais, Brazil
202
-
203
- #### Dataset Creators
204
-
205
- <!-- info: Who created the original dataset? List the people involved in collecting the dataset and their affiliation(s). -->
206
- <!-- scope: microscope -->
207
- The principle curator of the dataset is Anastasia Shimorina (Université de Lorraine / LORIA, France). Throughout the WebNLG releases, several people contributed to their construction: Claire Gardent (CNRS / LORIA, France), Shashi Narayan (Google, UK), Laura Perez-Beltrachini (University of Edinburgh, UK), Elena Khasanova, and Thiago Castro Ferreira (Federal University of Minas Gerais, Brazil).
208
-
209
- #### Funding
210
-
211
- <!-- info: Who funded the data creation? -->
212
- <!-- scope: microscope -->
213
- The dataset construction was funded by the French National Research Agency (ANR).
214
-
215
- #### Who added the Dataset to GEM?
216
-
217
- <!-- info: Who contributed to the data card and adding the dataset to GEM? List the people+affiliations involved in creating this data card and who helped integrate this dataset into GEM. -->
218
- <!-- scope: microscope -->
219
- Simon Mille and Sebastian Gehrmann added the dataset and wrote the data card.
220
-
221
-
222
- ### Dataset Structure
223
-
224
- #### Data Fields
225
-
226
- <!-- info: List and describe the fields present in the dataset. -->
227
- <!-- scope: telescope -->
228
- See [official documentation](https://webnlg-challenge.loria.fr/docs/).
229
-
230
-
231
- `entry`: a data instance of the benchmark. Each entry has five attributes: a DBpedia category (`category`), entry ID (`eid`), shape, shape type, and triple set size (`size`).
232
-
233
- - `shape`: a string representation of the RDF tree with nested parentheses where `X` is a node (see [Newick tree format](https://en.wikipedia.org/wiki/Newick_format)).
234
-
235
- - `shape_type`: a type of the tree shape. We [identify](https://www.aclweb.org/anthology/C16-1141.pdf) three types of tree shapes:
236
- * `chain` (the object of one triple is the subject of the other);
237
- * `sibling` (triples with a shared subject);
238
- * `mixed` (both `chain` and `sibling` types present).
239
- - `eid`: an entry ID. It is unique only within a category and a size.
240
- - `category`: a DBpedia category (Astronaut, City, MusicalWork, Politician, etc.).
241
- - `size`: the number of RDF triples in a set. Ranges from 1 to 7.
242
-
243
- Each `entry` has three fields: `originaltripleset`, `modifiedtripleset`, and `lexs`.
244
-
245
- `originaltripleset`: a set of RDF triples as extracted from [DBpedia](https://wiki.dbpedia.org/). Each set of RDF triples is a tree. Triples have the subject-predicate-object structure.
246
-
247
- `modifiedtripleset`: a set of RDF triples as presented to crowdworkers (for more details on modifications, see below).
248
-
249
- Original and modified triples serve different purposes: the original triples — to link data to a knowledge base (DBpedia), whereas the modified triples — to ensure consistency and homogeneity throughout the data. To train models, the modified triples should be used.
250
-
251
- `lexs` (shortened for lexicalisations): a natural language text verbalising the triples. Each lexicalisation has two attributes: a comment (`comment`), and a lexicalisation ID (`lid`). By default, comments have the value `good`, except rare cases when they were manually marked as `toFix`. That was done during the corpus creation, when it was seen that a lexicalisation did not exactly match a triple set.
252
-
253
- Russian data has additional optional fields comparing to English:
254
-
255
- `<dbpedialinks>`: RDF triples extracted from DBpedia between English and Russian entities by means of the property `sameAs`.
256
-
257
- `<links>`: RDF triples created manually for some entities to serve as pointers to translators. There are two types of them:
258
-
259
- * with `sameAs` (`Spaniards | sameAs | испанцы`)
260
-
261
- * with `includes` (`Tomatoes, guanciale, cheese, olive oil | includes | гуанчиале`). Those were mostly created for string literals to translate some parts of them.
262
-
263
- Lexicalisations in the Russian WebNLG have a new parameter `lang` (values: `en`, `ru`) because original English texts were kept in the Russian version (see the example above).
264
-
265
-
266
- #### Example Instance
267
-
268
- <!-- info: Provide a JSON formatted example of a typical instance in the dataset. -->
269
- <!-- scope: periscope -->
270
-
271
- ```
272
- {
273
- "entry": {
274
- "category": "Company",
275
- "size": "4",
276
- "shape": "(X (X) (X) (X) (X))",
277
- "shape_type": "sibling",
278
- "eid": "Id21",
279
- "lexs": [
280
- {
281
- "comment": "good",
282
- "lex": "Trane, which was founded on January 1st 1913 in La Crosse, Wisconsin, is based in Ireland. It has 29,000 employees.",
283
- "lid": "Id1"
284
- }
285
- ],
286
- "modifiedtripleset": [
287
- {
288
- "subject": "Trane",
289
- "property": "foundingDate",
290
- "object": "1913-01-01"
291
- },
292
- {
293
- "subject": "Trane",
294
- "property": "location",
295
- "object": "Ireland"
296
- },
297
- {
298
- "subject": "Trane",
299
- "property": "foundationPlace",
300
- "object": "La_Crosse,_Wisconsin"
301
- },
302
- {
303
- "subject": "Trane",
304
- "property": "numberOfEmployees",
305
- "object": "29000"
306
- }
307
-
308
- ],
309
- "originaltriplesets": {
310
- "originaltripleset": [
311
- {
312
- "subject": "Trane",
313
- "property": "foundingDate",
314
- "object": "1913-01-01"
315
- },
316
- {
317
- "subject": "Trane",
318
- "property": "location",
319
- "object": "Ireland"
320
- },
321
- {
322
- "subject": "Trane",
323
- "property": "foundationPlace",
324
- "object": "La_Crosse,_Wisconsin"
325
- },
326
- {
327
- "subject": "Trane",
328
- "property": "numberOfEmployees",
329
- "object": "29000"
330
- }
331
- ]
332
- }
333
-
334
- }
335
- }
336
- ```
337
-
338
- The XML-formatted example is [here](https://webnlg-challenge.loria.fr/docs/#example).
339
-
340
-
341
- #### Data Splits
342
-
343
- <!-- info: Describe and name the splits in the dataset if there are more than one. -->
344
- <!-- scope: periscope -->
345
-
346
-
347
- | English (v3.0) | Train | Dev | Test |
348
- |-----------------|--------|-------|-------|
349
- | **triple sets** | 13,211 | 1,667 | 1,779 |
350
- | **texts** | 35,426 | 4,464 | 5,150 |
351
- |**properties** | 372 | 290 | 220 |
352
-
353
-
354
- | Russian (v3.0) | Train | Dev | Test |
355
- |-----------------|--------|-------|-------|
356
- | **triple sets** | 5,573 | 790 | 1,102 |
357
- | **texts** | 14,239 | 2,026 | 2,780 |
358
- |**properties** | 226 | 115 | 192 |
359
-
360
-
361
-
362
- ## Dataset in GEM
363
-
364
- ### Rationale for Inclusion in GEM
365
-
366
- #### Why is the Dataset in GEM?
367
-
368
- <!-- info: What does this dataset contribute toward better generation evaluation and why is it part of GEM? -->
369
- <!-- scope: microscope -->
370
- Due to the constrained generation task, this dataset can be used to evaluate very specific and narrow generation capabilities.
371
-
372
- #### Similar Datasets
373
-
374
- <!-- info: Do other datasets for the high level task exist? -->
375
- <!-- scope: telescope -->
376
- yes
377
-
378
- #### Unique Language Coverage
379
-
380
- <!-- info: Does this dataset cover other languages than other datasets for the same task? -->
381
- <!-- scope: periscope -->
382
- yes
383
-
384
- #### Difference from other GEM datasets
385
-
386
- <!-- info: What else sets this dataset apart from other similar datasets in GEM? -->
387
- <!-- scope: microscope -->
388
- The RDF-triple format is unique to WebNLG.
389
-
390
- #### Ability that the Dataset measures
391
-
392
- <!-- info: What aspect of model ability can be measured with this dataset? -->
393
- <!-- scope: periscope -->
394
- surface realization
395
-
396
-
397
- ### GEM-Specific Curation
398
-
399
- #### Modificatied for GEM?
400
-
401
- <!-- info: Has the GEM version of the dataset been modified in any way (data, processing, splits) from the original curated data? -->
402
- <!-- scope: telescope -->
403
- yes
404
-
405
- #### GEM Modifications
406
-
407
- <!-- info: What changes have been made to he original dataset? -->
408
- <!-- scope: periscope -->
409
- `other`
410
-
411
- #### Modification Details
412
-
413
- <!-- info: For each of these changes, described them in more details and provided the intended purpose of the modification -->
414
- <!-- scope: microscope -->
415
- No changes to the main content of the dataset. The [version 3.0](https://gitlab.com/shimorina/webnlg-dataset/-/tree/master/release_v3.0) of the dataset is used.
416
-
417
-
418
- #### Additional Splits?
419
-
420
- <!-- info: Does GEM provide additional splits to the dataset? -->
421
- <!-- scope: telescope -->
422
- yes
423
-
424
- #### Split Information
425
-
426
- <!-- info: Describe how the new splits were created -->
427
- <!-- scope: periscope -->
428
- 23 special test sets for WebNLG were added to the GEM evaluation suite, 12 for English and 11 for Russian.
429
- For both languages, we created subsets of the training and development sets of ~500 randomly selected inputs each. The inputs were sampled proportionally from each category.
430
-
431
- Two types of transformations have been applied to WebNLG: (i) input scrambling (English and Russian) and (ii) numerical value replacements (English); in both cases, a subset of about 500 inputs was randomly selected. For (i), the order of the triples was randomly reassigned (each triple kept the same Subject-Property-Object internal order). For (ii), the change was performed respecting the format of the current cardinal value (e.g., alpha, integer, or floating-point) and replacing it with a new random value. The new number is lower-bounded between zero and upper bounded to be within to the highest power of 10 unit for the given value (e.g., replacing 54 would result in a random value between 0-100). Floating values maintain the degree of precision.
432
-
433
- For both languages, we did identify different subsets of the test set that we could compare to each other so that we would have a better understanding of the results. There are currently 8 selections that we have made:
434
-
435
- Selection 1 (size): input length. This selection corresponds to the number of predicates in the input. By comparing inputs of different lengths, we can see to what extent NLG systems are able to handle different input sizes. The table below provides the relevant frequencies. Please be aware that comparing selections with fewer than 100 items may result in unreliable comparisons.
436
-
437
- | Input length | Frequency English | Frequency Russian |
438
- |----------------|-------------------|-------------------|
439
- | 1 | 369 | 254 |
440
- | 2 | 349 | 200 |
441
- | 3 | 350 | 214 |
442
- | 4 | 305 | 214 |
443
- | 5 | 213 | 159 |
444
- | 6 | 114 | 32 |
445
- | 7 | 79 | 29 |
446
-
447
-
448
- Selection 2 (frequency): seen/unseen single predicates. This selection corresponds to the inputs with only one predicate. We compare which predicates are seen/unseen in the training data. The table below provides the relevant frequencies. Note that the comparison is only valid for English. Not for Russian, since there is only one example of unseen single predicates.
449
-
450
- | _ in training | Frequency English | Frequency Russian |
451
- |---------------|-------------------|-------------------|
452
- | Seen | 297 | 253 |
453
- | Unseen | 72 | 1 |
454
-
455
-
456
- Selection 3 (frequency): seen/unseen combinations of predicates. This selection checks for all combinations of predicates whether that combination has been seen in the training data. For example: if the combination of predicates A and B is seen, that means that there is an input in the training data consisting of two triples, where one triple uses predicate A and the other uses predicate B. If the combination is unseen, then the converse is true. The table below provides the relevant frequencies.
457
-
458
- | _ in training | Frequency English | Frequency Russian |
459
- |---------------|-------------------|-------------------|
460
- | unseen | 1295 | 354 |
461
- | seen | 115 | 494 |
462
-
463
-
464
- Selection 4 (frequency): seen/unseen arguments. This selection checks for all input whether or not all arg1s and arg2s in the input have been seen during the training phase. For this selection, *Seen* is the default. Only if all arg1 instances for a particular input are unseen, do we count the arg1s of the input as unseen. The same holds for arg2. So "seen" here really means that at least some of the arg1s or arg2s are seen in the input. The table below provides the relevant frequencies. Note that the comparison is only valid for English. Not for Russian, since there are very few examples of unseen combinations of predicates.
465
-
466
- | Arguments seen in training? | Frequency English | Frequency Russian |
467
- |-----------------------------|-------------------|-------------------|
468
- | both_seen | 518 | 1075 |
469
- | both_unseen | 1177 | 4 |
470
- | arg1_unseen | 56 | 19 |
471
- | arg2_unseen | 28 | 4 |
472
-
473
- Selection 5 (shape): repeated subjects. For this selection, the subsets are based on the times a subject is repeated in the input; it only takes into account the maximum number of times a subject is repeated, that is, if in one input a subject appears 3 times and a different subject 2 times, this input will be in the "3_subjects_same' split. Unique_subjects means all subjects are different.
474
-
475
- | Max num. of repeated subjects | Frequency English | Frequency Russian |
476
- |-------------------------------|-------------------|-------------------|
477
- | unique_subjects | 453 | 339 |
478
- | 2_subjects_same | 414 | 316 |
479
- | 3_subjects_same | 382 | 217 |
480
- | 4_subjects_same | 251 | 143 |
481
- | 5_subjects_same | 158 | 56 |
482
- | 6_subjects_same | 80 | 19 |
483
- | 7_subjects_same | 41 | 12 |
484
-
485
- Selection 6 (shape): repeated objects. Same as for subjects above, but for objects. There are much less cases of repeated objects, so there are only two categories for this selection, unique_objects and some_objects_repeated; for the latter, we have up to 3 coreferring objects in English, and XXX in Russian.
486
-
487
- | Max num. of repeated objects | Frequency English | Frequency Russian |
488
- |------------------------------|-------------------|-------------------|
489
- | unique_objects | 1654 | 1099 |
490
- | some_objects_same | 125 | 3 |
491
-
492
- Selection 7 (shape): repeated properties. Same as for objects above, but for properties; up to two properties can be the same in English, up to XXX in Russian.
493
-
494
- | Max num. of repeated properties | Frequency English | Frequency Russian |
495
- |---------------------------------|-------------------|-------------------|
496
- | unique_properties | 1510 | 986 |
497
- | some_properties_same | 269 | 116 |
498
-
499
- Selection 8 (shape): entities that appear both as subject and object. For this selection, we grouped together the inputs in which no entity is found as both subject and object, and on the other side inputs in which one or more entity/ies appear both as subject and as object. We found up to two such entities per input in English, and up to XXX in Russian.
500
-
501
- | Max num. of objects and subjects in common | Frequency English | Frequency Russian |
502
- |--------------------------------------------|-------------------|-------------------|
503
- | unique_properties | 1322 | 642 |
504
- | some_properties_same | 457 | 460 |
505
-
506
- #### Split Motivation
507
-
508
- <!-- info: What aspects of the model's generation capacities were the splits created to test? -->
509
- <!-- scope: periscope -->
510
- Robustness
511
-
512
-
513
- ### Getting Started with the Task
514
-
515
- #### Pointers to Resources
516
-
517
- <!-- info: Getting started with in-depth research on the task. Add relevant pointers to resources that researchers can consult when they want to get started digging deeper into the task. -->
518
- <!-- scope: microscope -->
519
- Dataset construction: [main dataset paper](https://www.aclweb.org/anthology/P17-1017/), [RDF triple extraction](https://www.aclweb.org/anthology/C16-1141/), [Russian translation](https://www.aclweb.org/anthology/W19-3706/)
520
-
521
- WebNLG Challenge 2017: [webpage](https://webnlg-challenge.loria.fr/challenge_2017/), [paper](https://www.aclweb.org/anthology/W17-3518/)
522
-
523
- WebNLG Challenge 2020: [webpage](https://webnlg-challenge.loria.fr/challenge_2020/), [paper](https://webnlg-challenge.loria.fr/files/2020.webnlg-papers.7.pdf)
524
-
525
- Enriched version of WebNLG: [repository](https://github.com/ThiagoCF05/webnlg), [paper](https://www.aclweb.org/anthology/W18-6521/)
526
-
527
- Related research papers: [webpage](https://webnlg-challenge.loria.fr/research/)
528
-
529
-
530
-
531
-
532
- ## Previous Results
533
-
534
- ### Previous Results
535
-
536
- #### Proposed Evaluation
537
-
538
- <!-- info: List and describe the purpose of the metrics and evaluation methodology (including human evaluation) that the dataset creators used when introducing this task. -->
539
- <!-- scope: microscope -->
540
- For both languages, the participating systems are automatically evaluated in a multi-reference scenario. Each English hypothesis is compared to a maximum of 5 references, and each Russian one to a maximum of 7 references. On average, English data has 2.89 references per test instance, and Russian data has 2.52 references per instance.
541
-
542
- In a human evaluation, example are uniformly sampled across size of triple sets and the following dimensions are assessed (on MTurk and Yandex.Toloka):
543
-
544
- 1. Data Coverage: Does the text include descriptions of all predicates presented in the data?
545
- 2. Relevance: Does the text describe only such predicates (with related subjects and objects), which are found in the data?
546
- 3. Correctness: When describing predicates which are found in the data, does the text mention correct the objects and adequately introduces the subject for this specific predicate?
547
- 4. Text Structure: Is the text grammatical, well-structured, written in acceptable English language?
548
- 5. Fluency: Is it possible to say that the text progresses naturally, forms a coherent whole and it is easy to understand the text?
549
-
550
- For additional information like the instructions, we refer to the original paper.
551
-
552
-
553
- #### Previous results available?
554
-
555
- <!-- info: Are previous results available? -->
556
- <!-- scope: telescope -->
557
- yes
558
-
559
- #### Other Evaluation Approaches
560
-
561
- <!-- info: What evaluation approaches have others used? -->
562
- <!-- scope: periscope -->
563
- We evaluated a wide range of models as part of the GEM benchmark.
564
-
565
- #### Relevant Previous Results
566
-
567
- <!-- info: What are the most relevant previous results for this task/dataset? -->
568
- <!-- scope: microscope -->
569
- Results can be found on the [GEM website](https://gem-benchmark.com/results).
570
-
571
-
572
-
573
- ## Broader Social Context
574
-
575
- ### Previous Work on the Social Impact of the Dataset
576
-
577
- #### Usage of Models based on the Data
578
-
579
- <!-- info: Are you aware of cases where models trained on the task featured in this dataset ore related tasks have been used in automated systems? -->
580
- <!-- scope: telescope -->
581
- yes - related tasks
582
-
583
- #### Social Impact Observations
584
-
585
- <!-- info: Did any of these previous uses result in observations about the social impact of the systems? In particular, has there been work outlining the risks and limitations of the system? Provide links and descriptions here. -->
586
- <!-- scope: microscope -->
587
- We do not foresee any negative social impact in particular from this dataset or task.
588
-
589
- Positive outlooks: Being able to generate good quality text from RDF data would permit, e.g., making this data more accessible to lay users, enriching existing text with information drawn from knowledge bases such as DBpedia or describing, comparing and relating entities present in these knowledge bases.
590
-
591
-
592
-
593
- ### Impact on Under-Served Communities
594
-
595
- #### Addresses needs of underserved Communities?
596
-
597
- <!-- info: Does this dataset address the needs of communities that are traditionally underserved in language technology, and particularly language generation technology? Communities may be underserved for exemple because their language, language variety, or social or geographical context is underepresented in NLP and NLG resources (datasets and models). -->
598
- <!-- scope: telescope -->
599
- no
600
-
601
-
602
- ### Discussion of Biases
603
-
604
- #### Any Documented Social Biases?
605
-
606
- <!-- info: Are there documented social biases in the dataset? Biases in this context are variations in the ways members of different social categories are represented that can have harmful downstream consequences for members of the more disadvantaged group. -->
607
- <!-- scope: telescope -->
608
- yes
609
-
610
- #### Links and Summaries of Analysis Work
611
-
612
- <!-- info: Provide links to and summaries of works analyzing these biases. -->
613
- <!-- scope: microscope -->
614
- This dataset is created using DBpedia RDF triples which naturally exhibit biases that have been found to exist in Wikipedia such as some forms of, e.g., gender bias.
615
-
616
- The choice of [entities](https://gitlab.com/shimorina/webnlg-dataset/-/blob/master/supplementary/entities_dict.json), described by RDF trees, was not controlled. As such, they may contain gender biases; for instance, all the astronauts described by RDF triples are male. Hence, in texts, pronouns _he/him/his_ occur more often. Similarly, entities can be related to the Western culture more often than to other cultures.
617
-
618
-
619
- #### Are the Language Producers Representative of the Language?
620
-
621
- <!-- info: Does the distribution of language producers in the dataset accurately represent the full distribution of speakers of the language world-wide? If not, how does it differ? -->
622
- <!-- scope: periscope -->
623
- In English, the dataset is limited to the language that crowdraters speak. In Russian, the language is heavily biased by the translationese of the translation system that is post-edited.
624
-
625
-
626
-
627
- ## Considerations for Using the Data
628
-
629
- ### PII Risks and Liability
630
-
631
- #### Potential PII Risk
632
-
633
- <!-- info: Considering your answers to the PII part of the Data Curation Section, describe any potential privacy to the data subjects and creators risks when using the dataset. -->
634
- <!-- scope: microscope -->
635
- There is no PII in this dataset.
636
-
637
-
638
- ### Licenses
639
-
640
- #### Copyright Restrictions on the Dataset
641
-
642
- <!-- info: Based on your answers in the Intended Use part of the Data Overview Section, which of the following best describe the copyright and licensing status of the dataset? -->
643
- <!-- scope: periscope -->
644
- `non-commercial use only`
645
-
646
- #### Copyright Restrictions on the Language Data
647
-
648
- <!-- info: Based on your answers in the Language part of the Data Curation Section, which of the following best describe the copyright and licensing status of the underlying language data? -->
649
- <!-- scope: periscope -->
650
- `public domain`
651
-
652
-
653
- ### Known Technical Limitations
654
-
655
- #### Technical Limitations
656
-
657
- <!-- info: Describe any known technical limitations, such as spurrious correlations, train/test overlap, annotation biases, or mis-annotations, and cite the works that first identified these limitations when possible. -->
658
- <!-- scope: microscope -->
659
- The quality of the crowdsourced references is limited, in particular in terms of fluency/naturalness of the collected texts.
660
-
661
- Russian data was machine-translated and then post-edited by crowdworkers, so some examples may still exhibit issues related to bad translations.
662
-
663
-
664
- #### Unsuited Applications
665
-
666
- <!-- info: When using a model trained on this dataset in a setting where users or the public may interact with its predictions, what are some pitfalls to look out for? In particular, describe some applications of the general task featured in this dataset that its curation or properties make it less suitable for. -->
667
- <!-- scope: microscope -->
668
- Only a limited number of domains are covered in this dataset. As a result, it cannot be used as a general-purpose realizer.
669
-
670
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1,244 +0,0 @@
1
- {
2
- "en": {
3
- "description": "GEM is a benchmark environment for Natural Language Generation with a focus on its Evaluation,\nboth through human annotations and automated Metrics.\n\nGEM aims to:\n- measure NLG progress across 13 datasets spanning many NLG tasks and languages.\n- provide an in-depth analysis of data and models presented via data statements and challenge sets.\n- develop standards for evaluation of generated text using both automated and human metrics.\n\nIt is our goal to regularly update GEM and to encourage toward more inclusive practices in dataset development\nby extending existing data or developing datasets for additional languages.\n",
4
- "citation": "@article{gem_benchmark,\n author = {Sebastian Gehrmann and\n Tosin P. Adewumi and\n Karmanya Aggarwal and\n Pawan Sasanka Ammanamanchi and\n Aremu Anuoluwapo and\n Antoine Bosselut and\n Khyathi Raghavi Chandu and\n Miruna{-}Adriana Clinciu and\n Dipanjan Das and\n Kaustubh D. Dhole and\n Wanyu Du and\n Esin Durmus and\n Ondrej Dusek and\n Chris Emezue and\n Varun Gangal and\n Cristina Garbacea and\n Tatsunori Hashimoto and\n Yufang Hou and\n Yacine Jernite and\n Harsh Jhamtani and\n Yangfeng Ji and\n Shailza Jolly and\n Dhruv Kumar and\n Faisal Ladhak and\n Aman Madaan and\n Mounica Maddela and\n Khyati Mahajan and\n Saad Mahamood and\n Bodhisattwa Prasad Majumder and\n Pedro Henrique Martins and\n Angelina McMillan{-}Major and\n Simon Mille and\n Emiel van Miltenburg and\n Moin Nadeem and\n Shashi Narayan and\n Vitaly Nikolaev and\n Rubungo Andre Niyongabo and\n Salomey Osei and\n Ankur P. Parikh and\n Laura Perez{-}Beltrachini and\n Niranjan Ramesh Rao and\n Vikas Raunak and\n Juan Diego Rodriguez and\n Sashank Santhanam and\n Joao Sedoc and\n Thibault Sellam and\n Samira Shaikh and\n Anastasia Shimorina and\n Marco Antonio Sobrevilla Cabezudo and\n Hendrik Strobelt and\n Nishant Subramani and\n Wei Xu and\n Diyi Yang and\n Akhila Yerukola and\n Jiawei Zhou},\n title = {The {GEM} Benchmark: Natural Language Generation, its Evaluation and\n Metrics},\n journal = {CoRR},\n volume = {abs/2102.01672},\n year = {2021},\n url = {https://arxiv.org/abs/2102.01672},\n archivePrefix = {arXiv},\n eprint = {2102.01672}\n}\n",
5
- "homepage": "https://gem-benchmark.github.io/",
6
- "license": "CC-BY-SA-4.0",
7
- "features": {
8
- "gem_id": {
9
- "dtype": "string",
10
- "id": null,
11
- "_type": "Value"
12
- },
13
- "gem_parent_id": {
14
- "dtype": "string",
15
- "id": null,
16
- "_type": "Value"
17
- },
18
- "input": [
19
- {
20
- "dtype": "string",
21
- "id": null,
22
- "_type": "Value"
23
- }
24
- ],
25
- "target": {
26
- "dtype": "string",
27
- "id": null,
28
- "_type": "Value"
29
- },
30
- "references": [
31
- {
32
- "dtype": "string",
33
- "id": null,
34
- "_type": "Value"
35
- }
36
- ],
37
- "category": {
38
- "dtype": "string",
39
- "id": null,
40
- "_type": "Value"
41
- },
42
- "webnlg_id": {
43
- "dtype": "string",
44
- "id": null,
45
- "_type": "Value"
46
- }
47
- },
48
- "post_processed": null,
49
- "supervised_keys": null,
50
- "builder_name": "gem",
51
- "config_name": "en",
52
- "version": {
53
- "version_str": "1.1.0",
54
- "description": null,
55
- "major": 1,
56
- "minor": 1,
57
- "patch": 0
58
- },
59
- "splits": {
60
- "train": {
61
- "name": "train",
62
- "num_bytes": 13067615,
63
- "num_examples": 35426,
64
- "dataset_name": "gem"
65
- },
66
- "validation": {
67
- "name": "validation",
68
- "num_bytes": 1153995,
69
- "num_examples": 1667,
70
- "dataset_name": "gem"
71
- },
72
- "test": {
73
- "name": "test",
74
- "num_bytes": 1403601,
75
- "num_examples": 1779,
76
- "dataset_name": "gem"
77
- },
78
- "challenge_train_sample": {
79
- "name": "challenge_train_sample",
80
- "num_bytes": 193198,
81
- "num_examples": 502,
82
- "dataset_name": "gem"
83
- },
84
- "challenge_validation_sample": {
85
- "name": "challenge_validation_sample",
86
- "num_bytes": 359868,
87
- "num_examples": 499,
88
- "dataset_name": "gem"
89
- },
90
- "challenge_test_scramble": {
91
- "name": "challenge_test_scramble",
92
- "num_bytes": 402407,
93
- "num_examples": 500,
94
- "dataset_name": "gem"
95
- },
96
- "challenge_test_numbers": {
97
- "name": "challenge_test_numbers",
98
- "num_bytes": 409213,
99
- "num_examples": 500,
100
- "dataset_name": "gem"
101
- }
102
- },
103
- "download_checksums": {
104
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_en_train.json": {
105
- "num_bytes": 10135450,
106
- "checksum": "959646a986465c436362dfc44bb4966d5a2d39f2725b39fe32701981daf666d0"
107
- },
108
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_en_val.json": {
109
- "num_bytes": 1273018,
110
- "checksum": "8214bf87ff0369e505ba5c11cdbbaa1127f7908ad77a75a2f1d1a76730c3a954"
111
- },
112
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_en_test.json": {
113
- "num_bytes": 1537460,
114
- "checksum": "68a4a919a9b805e17959a52f7d5c14a6083bba1459645b4189824fca468e362d"
115
- },
116
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/web_nlg_en.zip": {
117
- "num_bytes": 236041,
118
- "checksum": "42740fc1010cbc490a023b5ec13c55b95acc848b7b459a9a586242b444b1ba40"
119
- }
120
- },
121
- "download_size": 13181969,
122
- "post_processing_size": null,
123
- "dataset_size": 16989897,
124
- "size_in_bytes": 30171866
125
- },
126
- "ru": {
127
- "description": "GEM is a benchmark environment for Natural Language Generation with a focus on its Evaluation,\nboth through human annotations and automated Metrics.\n\nGEM aims to:\n- measure NLG progress across 13 datasets spanning many NLG tasks and languages.\n- provide an in-depth analysis of data and models presented via data statements and challenge sets.\n- develop standards for evaluation of generated text using both automated and human metrics.\n\nIt is our goal to regularly update GEM and to encourage toward more inclusive practices in dataset development\nby extending existing data or developing datasets for additional languages.\n",
128
- "citation": "@article{gem_benchmark,\n author = {Sebastian Gehrmann and\n Tosin P. Adewumi and\n Karmanya Aggarwal and\n Pawan Sasanka Ammanamanchi and\n Aremu Anuoluwapo and\n Antoine Bosselut and\n Khyathi Raghavi Chandu and\n Miruna{-}Adriana Clinciu and\n Dipanjan Das and\n Kaustubh D. Dhole and\n Wanyu Du and\n Esin Durmus and\n Ondrej Dusek and\n Chris Emezue and\n Varun Gangal and\n Cristina Garbacea and\n Tatsunori Hashimoto and\n Yufang Hou and\n Yacine Jernite and\n Harsh Jhamtani and\n Yangfeng Ji and\n Shailza Jolly and\n Dhruv Kumar and\n Faisal Ladhak and\n Aman Madaan and\n Mounica Maddela and\n Khyati Mahajan and\n Saad Mahamood and\n Bodhisattwa Prasad Majumder and\n Pedro Henrique Martins and\n Angelina McMillan{-}Major and\n Simon Mille and\n Emiel van Miltenburg and\n Moin Nadeem and\n Shashi Narayan and\n Vitaly Nikolaev and\n Rubungo Andre Niyongabo and\n Salomey Osei and\n Ankur P. Parikh and\n Laura Perez{-}Beltrachini and\n Niranjan Ramesh Rao and\n Vikas Raunak and\n Juan Diego Rodriguez and\n Sashank Santhanam and\n Joao Sedoc and\n Thibault Sellam and\n Samira Shaikh and\n Anastasia Shimorina and\n Marco Antonio Sobrevilla Cabezudo and\n Hendrik Strobelt and\n Nishant Subramani and\n Wei Xu and\n Diyi Yang and\n Akhila Yerukola and\n Jiawei Zhou},\n title = {The {GEM} Benchmark: Natural Language Generation, its Evaluation and\n Metrics},\n journal = {CoRR},\n volume = {abs/2102.01672},\n year = {2021},\n url = {https://arxiv.org/abs/2102.01672},\n archivePrefix = {arXiv},\n eprint = {2102.01672}\n}\n",
129
- "homepage": "https://gem-benchmark.github.io/",
130
- "license": "CC-BY-SA-4.0",
131
- "features": {
132
- "gem_id": {
133
- "dtype": "string",
134
- "id": null,
135
- "_type": "Value"
136
- },
137
- "gem_parent_id": {
138
- "dtype": "string",
139
- "id": null,
140
- "_type": "Value"
141
- },
142
- "input": [
143
- {
144
- "dtype": "string",
145
- "id": null,
146
- "_type": "Value"
147
- }
148
- ],
149
- "target": {
150
- "dtype": "string",
151
- "id": null,
152
- "_type": "Value"
153
- },
154
- "references": [
155
- {
156
- "dtype": "string",
157
- "id": null,
158
- "_type": "Value"
159
- }
160
- ],
161
- "category": {
162
- "dtype": "string",
163
- "id": null,
164
- "_type": "Value"
165
- },
166
- "webnlg_id": {
167
- "dtype": "string",
168
- "id": null,
169
- "_type": "Value"
170
- }
171
- },
172
- "post_processed": null,
173
- "supervised_keys": null,
174
- "builder_name": "gem",
175
- "config_name": "ru",
176
- "version": {
177
- "version_str": "1.1.0",
178
- "description": null,
179
- "major": 1,
180
- "minor": 1,
181
- "patch": 0
182
- },
183
- "splits": {
184
- "train": {
185
- "name": "train",
186
- "num_bytes": 6888009,
187
- "num_examples": 14630,
188
- "dataset_name": "gem"
189
- },
190
- "validation": {
191
- "name": "validation",
192
- "num_bytes": 795998,
193
- "num_examples": 790,
194
- "dataset_name": "gem"
195
- },
196
- "test": {
197
- "name": "test",
198
- "num_bytes": 1145282,
199
- "num_examples": 1102,
200
- "dataset_name": "gem"
201
- },
202
- "challenge_train_sample": {
203
- "name": "challenge_train_sample",
204
- "num_bytes": 247089,
205
- "num_examples": 501,
206
- "dataset_name": "gem"
207
- },
208
- "challenge_validation_sample": {
209
- "name": "challenge_validation_sample",
210
- "num_bytes": 514117,
211
- "num_examples": 500,
212
- "dataset_name": "gem"
213
- },
214
- "challenge_test_scramble": {
215
- "name": "challenge_test_scramble",
216
- "num_bytes": 521625,
217
- "num_examples": 500,
218
- "dataset_name": "gem"
219
- }
220
- },
221
- "download_checksums": {
222
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_ru_train.json": {
223
- "num_bytes": 5724246,
224
- "checksum": "bfaa20bd792a34fda25cff766fbabaf12c56c60b898865a2f976cfaad9c04d2e"
225
- },
226
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_ru_val.json": {
227
- "num_bytes": 783342,
228
- "checksum": "ac2e74d8618196ccf44be695dbdf4960e1f15dc9a39ebd754a808e793327aafd"
229
- },
230
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_ru_test.json": {
231
- "num_bytes": 1123674,
232
- "checksum": "24f4282eb6aa8dc424b6b676e1531a730b508e999b2c55d52215e72e4c7ec524"
233
- },
234
- "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/web_nlg_ru.zip": {
235
- "num_bytes": 223583,
236
- "checksum": "3d8c6db0a5f941fe897674fd404352fc31b98d50d9492e7cf7f8aed61c69cc21"
237
- }
238
- },
239
- "download_size": 7854845,
240
- "post_processing_size": null,
241
- "dataset_size": 10112120,
242
- "size_in_bytes": 17966965
243
- }
244
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
en/web_nlg-challenge_test_numbers.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a75bef6311a42b801c252f3568e012acdd08d0a1f6e3b24478345b0ac9d4abaf
3
+ size 143118
en/web_nlg-challenge_test_scramble.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03d87e18cc78e4d6d973c330740d3ebbd327b69b62fc936f65f4485b8a3cc474
3
+ size 125238
en/web_nlg-challenge_train_sample.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a367cdee67c72419bfe4aa44e55204fc1c65a9f55fa485a7cb52c7c20f6d2a94
3
+ size 73893
en/web_nlg-challenge_validation_sample.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fd981672f1775fd51c931ed6a6e744cc348c30dec56f1992b701fac5deb791b5
3
+ size 138436
en/web_nlg-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ad8031eae97a30b410bcaaf2c86f80926be027eabc83e2dd4c86b793416c3db
3
+ size 473727
en/web_nlg-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:eb354b0667f4ad036489e760cbc6d48e17364badbacb29f25342ff8db7732389
3
+ size 2382604
en/web_nlg-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0cb47c346e9a4ae6e207449387e86e98fb4fc3de4094626d511b861ded69308e
3
+ size 433511
ru/web_nlg-challenge_test_scramble.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e95fbb26b48caffce787266f73eeddf14f841a62e3b2618234935bdd13349ba5
3
+ size 170081
ru/web_nlg-challenge_train_sample.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f39c7f0bb3f4cac2a4e0aef61d59a526e280eebebf4364c4eb2d745d6358dc47
3
+ size 81217
ru/web_nlg-challenge_validation_sample.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0bb684da732622d965942d88840af49e8b87848de1a253e367d35c057e99c328
3
+ size 135831
ru/web_nlg-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:507cf648dcf8b264dc441f401cfc0513af2b0e9fe702bddabf0f1e37e10d725a
3
+ size 427750
ru/web_nlg-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a10633c0b73f307d20d3332ff7517864f5fd79e249a6c891bd432de4b85e13b
3
+ size 1280488
ru/web_nlg-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:6f31e2ac2d7e7578bbcee826eb0ff4f3e18766eaa0fe9a9e3ea25e0bad351836
3
+ size 219342
web_nlg.json DELETED
@@ -1,113 +0,0 @@
1
- {
2
- "results": {
3
- "results": {
4
- "other-metrics-definitions": "N/A",
5
- "has-previous-results": "yes",
6
- "current-evaluation": "We evaluated a wide range of models as part of the GEM benchmark.",
7
- "previous-results": "Results can be found on the [GEM website](https://gem-benchmark.com/results).",
8
- "original-evaluation": "For both languages, the participating systems are automatically evaluated in a multi-reference scenario. Each English hypothesis is compared to a maximum of 5 references, and each Russian one to a maximum of 7 references. On average, English data has 2.89 references per test instance, and Russian data has 2.52 references per instance. \n\nIn a human evaluation, example are uniformly sampled across size of triple sets and the following dimensions are assessed (on MTurk and Yandex.Toloka):\n\n1. Data Coverage: Does the text include descriptions of all predicates presented in the data?\n2. Relevance: Does the text describe only such predicates (with related subjects and objects), which are found in the data?\n3. Correctness: When describing predicates which are found in the data, does the text mention correct the objects and adequately introduces the subject for this specific predicate?\n4. Text Structure: Is the text grammatical, well-structured, written in acceptable English language?\n5. Fluency: Is it possible to say that the text progresses naturally, forms a coherent whole and it is easy to understand the text?\n\nFor additional information like the instructions, we refer to the original paper.\n"
9
- }
10
- },
11
- "considerations": {
12
- "pii": {
13
- "risks-description": "There is no PII in this dataset."
14
- },
15
- "licenses": {
16
- "dataset-restrictions-other": "N/A",
17
- "data-copyright-other": "N/A",
18
- "dataset-restrictions": [
19
- "non-commercial use only"
20
- ],
21
- "data-copyright": [
22
- "public domain"
23
- ]
24
- },
25
- "limitations": {
26
- "data-technical-limitations": "The quality of the crowdsourced references is limited, in particular in terms of fluency/naturalness of the collected texts.\n\nRussian data was machine-translated and then post-edited by crowdworkers, so some examples may still exhibit issues related to bad translations.\n",
27
- "data-unsuited-applications": "Only a limited number of domains are covered in this dataset. As a result, it cannot be used as a general-purpose realizer. ",
28
- "data-discouraged-use": "N/A"
29
- }
30
- },
31
- "context": {
32
- "previous": {
33
- "is-deployed": "yes - related tasks",
34
- "described-risks": "We do not foresee any negative social impact in particular from this dataset or task.\n\nPositive outlooks: Being able to generate good quality text from RDF data would permit, e.g., making this data more accessible to lay users, enriching existing text with information drawn from knowledge bases such as DBpedia or describing, comparing and relating entities present in these knowledge bases.\n",
35
- "changes-from-observation": "N/A"
36
- },
37
- "underserved": {
38
- "helps-underserved": "no",
39
- "underserved-description": "N/A"
40
- },
41
- "biases": {
42
- "has-biases": "yes",
43
- "bias-analyses": "This dataset is created using DBpedia RDF triples which naturally exhibit biases that have been found to exist in Wikipedia such as some forms of, e.g., gender bias.\n\nThe choice of [entities](https://gitlab.com/shimorina/webnlg-dataset/-/blob/master/supplementary/entities_dict.json), described by RDF trees, was not controlled. As such, they may contain gender biases; for instance, all the astronauts described by RDF triples are male. Hence, in texts, pronouns _he/him/his_ occur more often. Similarly, entities can be related to the Western culture more often than to other cultures.\n",
44
- "speaker-distibution": "In English, the dataset is limited to the language that crowdraters speak. In Russian, the language is heavily biased by the translationese of the translation system that is post-edited. "
45
- }
46
- },
47
- "gem": {
48
- "rationale": {
49
- "contribution": "Due to the constrained generation task, this dataset can be used to evaluate very specific and narrow generation capabilities. ",
50
- "sole-task-dataset": "yes",
51
- "sole-language-task-dataset": "yes",
52
- "distinction-description": "The RDF-triple format is unique to WebNLG.",
53
- "model-ability": "surface realization"
54
- },
55
- "curation": {
56
- "has-additional-curation": "yes",
57
- "modification-types": [
58
- "other"
59
- ],
60
- "modification-description": "No changes to the main content of the dataset. The [version 3.0](https://gitlab.com/shimorina/webnlg-dataset/-/tree/master/release_v3.0) of the dataset is used.\n",
61
- "has-additional-splits": "yes",
62
- "additional-splits-description": "23 special test sets for WebNLG were added to the GEM evaluation suite, 12 for English and 11 for Russian.\nFor both languages, we created subsets of the training and development sets of ~500 randomly selected inputs each. The inputs were sampled proportionally from each category.\n\nTwo types of transformations have been applied to WebNLG: (i) input scrambling (English and Russian) and (ii) numerical value replacements (English); in both cases, a subset of about 500 inputs was randomly selected. For (i), the order of the triples was randomly reassigned (each triple kept the same Subject-Property-Object internal order). For (ii), the change was performed respecting the format of the current cardinal value (e.g., alpha, integer, or floating-point) and replacing it with a new random value. The new number is lower-bounded between zero and upper bounded to be within to the highest power of 10 unit for the given value (e.g., replacing 54 would result in a random value between 0-100). Floating values maintain the degree of precision.\n\nFor both languages, we did identify different subsets of the test set that we could compare to each other so that we would have a better understanding of the results. There are currently 8 selections that we have made:\n\nSelection 1 (size): input length. This selection corresponds to the number of predicates in the input. By comparing inputs of different lengths, we can see to what extent NLG systems are able to handle different input sizes. The table below provides the relevant frequencies. Please be aware that comparing selections with fewer than 100 items may result in unreliable comparisons.\n\n| Input length | Frequency English | Frequency Russian |\n|----------------|-------------------|-------------------|\n| 1 | 369 | 254 |\n| 2 | 349 | 200 |\n| 3 | 350 | 214 |\n| 4 | 305 | 214 |\n| 5 | 213 | 159 |\n| 6 | 114 | 32 |\n| 7 | 79 | 29 |\n\n\nSelection 2 (frequency): seen/unseen single predicates. This selection corresponds to the inputs with only one predicate. We compare which predicates are seen/unseen in the training data. The table below provides the relevant frequencies. Note that the comparison is only valid for English. Not for Russian, since there is only one example of unseen single predicates.\n\n| _ in training | Frequency English | Frequency Russian |\n|---------------|-------------------|-------------------|\n| Seen | 297 | 253 |\n| Unseen | 72 | 1 |\n\n\nSelection 3 (frequency): seen/unseen combinations of predicates. This selection checks for all combinations of predicates whether that combination has been seen in the training data. For example: if the combination of predicates A and B is seen, that means that there is an input in the training data consisting of two triples, where one triple uses predicate A and the other uses predicate B. If the combination is unseen, then the converse is true. The table below provides the relevant frequencies.\n\n| _ in training | Frequency English | Frequency Russian |\n|---------------|-------------------|-------------------|\n| unseen | 1295 | 354 |\n| seen | 115 | 494 |\n\n\nSelection 4 (frequency): seen/unseen arguments. This selection checks for all input whether or not all arg1s and arg2s in the input have been seen during the training phase. For this selection, *Seen* is the default. Only if all arg1 instances for a particular input are unseen, do we count the arg1s of the input as unseen. The same holds for arg2. So \"seen\" here really means that at least some of the arg1s or arg2s are seen in the input. The table below provides the relevant frequencies. Note that the comparison is only valid for English. Not for Russian, since there are very few examples of unseen combinations of predicates.\n\n| Arguments seen in training? | Frequency English | Frequency Russian |\n|-----------------------------|-------------------|-------------------|\n| both_seen | 518 | 1075 |\n| both_unseen | 1177 | 4 |\n| arg1_unseen | 56 | 19 |\n| arg2_unseen | 28 | 4 |\n\nSelection 5 (shape): repeated subjects. For this selection, the subsets are based on the times a subject is repeated in the input; it only takes into account the maximum number of times a subject is repeated, that is, if in one input a subject appears 3 times and a different subject 2 times, this input will be in the \"3_subjects_same' split. Unique_subjects means all subjects are different. \n\n| Max num. of repeated subjects | Frequency English | Frequency Russian |\n|-------------------------------|-------------------|-------------------|\n| unique_subjects | 453 | 339 |\n| 2_subjects_same | 414 | 316 |\n| 3_subjects_same | 382 | 217 |\n| 4_subjects_same | 251 | 143 |\n| 5_subjects_same | 158 | 56 |\n| 6_subjects_same | 80 | 19 |\n| 7_subjects_same | 41 | 12 |\n\nSelection 6 (shape): repeated objects. Same as for subjects above, but for objects. There are much less cases of repeated objects, so there are only two categories for this selection, unique_objects and some_objects_repeated; for the latter, we have up to 3 coreferring objects in English, and XXX in Russian.\n\n| Max num. of repeated objects | Frequency English | Frequency Russian |\n|------------------------------|-------------------|-------------------|\n| unique_objects | 1654 | 1099 |\n| some_objects_same | 125 | 3 |\n\nSelection 7 (shape): repeated properties. Same as for objects above, but for properties; up to two properties can be the same in English, up to XXX in Russian.\n\n| Max num. of repeated properties | Frequency English | Frequency Russian |\n|---------------------------------|-------------------|-------------------|\n| unique_properties | 1510 | 986 |\n| some_properties_same | 269 | 116 |\n\nSelection 8 (shape): entities that appear both as subject and object. For this selection, we grouped together the inputs in which no entity is found as both subject and object, and on the other side inputs in which one or more entity/ies appear both as subject and as object. We found up to two such entities per input in English, and up to XXX in Russian.\n\n| Max num. of objects and subjects in common | Frequency English | Frequency Russian |\n|--------------------------------------------|-------------------|-------------------|\n| unique_properties | 1322 | 642 |\n| some_properties_same | 457 | 460 |",
63
- "additional-splits-capacicites": "Robustness"
64
- },
65
- "starting": {
66
- "research-pointers": "Dataset construction: [main dataset paper](https://www.aclweb.org/anthology/P17-1017/), [RDF triple extraction](https://www.aclweb.org/anthology/C16-1141/), [Russian translation](https://www.aclweb.org/anthology/W19-3706/)\n\nWebNLG Challenge 2017: [webpage](https://webnlg-challenge.loria.fr/challenge_2017/), [paper](https://www.aclweb.org/anthology/W17-3518/)\n\nWebNLG Challenge 2020: [webpage](https://webnlg-challenge.loria.fr/challenge_2020/), [paper](https://webnlg-challenge.loria.fr/files/2020.webnlg-papers.7.pdf)\n\nEnriched version of WebNLG: [repository](https://github.com/ThiagoCF05/webnlg), [paper](https://www.aclweb.org/anthology/W18-6521/)\n\nRelated research papers: [webpage](https://webnlg-challenge.loria.fr/research/)\n",
67
- "technical-terms": ""
68
- }
69
- },
70
- "overview": {
71
- "what": {
72
- "dataset": "WebNLG is a bi-lingual dataset (English, Russian) of parallel DBpedia triple sets and short texts that cover about 450 different DBpedia properties. The WebNLG data was originally created to promote the development of RDF verbalisers able to generate short text and to handle micro-planning (i.e., sentence segmentation and ordering, referring expression generation, aggregation); the goal of the task is to generate texts starting from 1 to 7 input triples which have entities in common (so the input is actually a connected Knowledge Graph). The dataset contains about 17,000 triple sets and 45,000 crowdsourced texts in English, and 7,000 triples sets and 19,000 crowdsourced texts in Russian. A challenging test set section with entities and/or properties that have not been seen at training time is available."
73
- },
74
- "where": {
75
- "website": "[Website](https://webnlg-challenge.loria.fr/)",
76
- "data-url": "[Gitlab](https://gitlab.com/shimorina/webnlg-dataset)",
77
- "paper-url": "[First Dataset Release](http://www.aclweb.org/anthology/P17-1017), [WebNLG Challenge 2017 Report](https://www.aclweb.org/anthology/W17-3518/), [WebNLG Challenge 2020 Report](https://webnlg-challenge.loria.fr/files/2020.webnlg-papers.7.pdf)",
78
- "paper-bibtext": "Initial release of the dataset:\n```\n@inproceedings{gardent2017creating,\n author = \t\"Gardent, Claire\n\t\tand Shimorina, Anastasia\n\t\tand Narayan, Shashi\n\t\tand Perez-Beltrachini, Laura\",\n title = \t\"Creating Training Corpora for NLG Micro-Planners\",\n booktitle = \t\"Proceedings of the 55th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)\",\n year = \t\"2017\",\n publisher = \t\"Association for Computational Linguistics\",\n pages = \t\"179--188\",\n location = \t\"Vancouver, Canada\",\n doi = \t\"10.18653/v1/P17-1017\",\n url = \t\"http://www.aclweb.org/anthology/P17-1017\"\n}\n```\n\nThe latest version 3.0:\n```\n@inproceedings{castro-ferreira20:bilin-bi-direc-webnl-shared,\n title={The 2020 Bilingual, Bi-Directional WebNLG+ Shared Task Overview and Evaluation Results (WebNLG+ 2020)},\n author={Castro Ferreira, Thiago and\n Gardent, Claire and\n\t\t Ilinykh, Nikolai and\n\t\t van der Lee, Chris and\n\t\t Mille, Simon and\n\t\t Moussallem, Diego and\n\t\t Shimorina, Anastasia},\n booktitle = {Proceedings of the 3rd WebNLG Workshop on Natural Language Generation from the Semantic Web (WebNLG+ 2020)},\n pages = \"55--76\",\n year = \t 2020,\n address = \t {Dublin, Ireland (Virtual)},\n publisher = {Association for Computational Linguistics}}\n```",
79
- "has-leaderboard": "yes",
80
- "leaderboard-url": "[Website](https://beng.dice-research.org/gerbil/)",
81
- "leaderboard-description": "The model outputs are evaluated against the crowdsourced references; the leaderboard reports BLEU-4, METEOR, chrF++, TER, BERTScore and BLEURT scores.",
82
- "contact-email": "webnlg-challenge@inria.fr"
83
- },
84
- "languages": {
85
- "is-multilingual": "yes",
86
- "language-names": [
87
- "Russian",
88
- "English"
89
- ],
90
- "language-dialects": "n/a",
91
- "intended-use": "The WebNLG dataset was created to promote the development (_i_) of RDF verbalisers and (_ii_) of microplanners able to handle a wide range of linguistic constructions. The dataset aims at covering knowledge in different domains (\"categories\"). The same properties and entities can appear in several categories.\n",
92
- "license": "cc-by-nc-4.0: Creative Commons Attribution Non Commercial 4.0 International",
93
- "license-other": "N/A",
94
- "task": "Data-to-Text",
95
- "task-other": "N/A",
96
- "communicative": "A model should verbalize all and only the provided input triples in natural language."
97
- },
98
- "credit": {
99
- "organization-type": [
100
- "academic"
101
- ],
102
- "organization-names": "Universit\u00e9 de Lorraine / LORIA, France, CNRS / LORIA, France, University of Edinburgh, UK, Federal University of Minas Gerais, Brazil",
103
- "creators": "The principle curator of the dataset is Anastasia Shimorina (Universit\u00e9 de Lorraine / LORIA, France). Throughout the WebNLG releases, several people contributed to their construction: Claire Gardent (CNRS / LORIA, France), Shashi Narayan (Google, UK), Laura Perez-Beltrachini (University of Edinburgh, UK), Elena Khasanova, and Thiago Castro Ferreira (Federal University of Minas Gerais, Brazil).",
104
- "funding": "The dataset construction was funded by the French National Research Agency (ANR).",
105
- "gem-added-by": "Simon Mille and Sebastian Gehrmann added the dataset and wrote the data card."
106
- },
107
- "structure": {
108
- "data-fields": "See [official documentation](https://webnlg-challenge.loria.fr/docs/).\n\n\n`entry`: a data instance of the benchmark. Each entry has five attributes: a DBpedia category (`category`), entry ID (`eid`), shape, shape type, and triple set size (`size`).\n\t\n- `shape`: a string representation of the RDF tree with nested parentheses where `X` is a node (see [Newick tree format](https://en.wikipedia.org/wiki/Newick_format)).\n\n- `shape_type`: a type of the tree shape. We [identify](https://www.aclweb.org/anthology/C16-1141.pdf) three types of tree shapes:\n * `chain` (the object of one triple is the subject of the other);\n * `sibling` (triples with a shared subject);\n * `mixed` (both `chain` and `sibling` types present).\n- `eid`: an entry ID. It is unique only within a category and a size.\n- `category`: a DBpedia category (Astronaut, City, MusicalWork, Politician, etc.).\n- `size`: the number of RDF triples in a set. Ranges from 1 to 7.\n\nEach `entry` has three fields: `originaltripleset`, `modifiedtripleset`, and `lexs`.\n\n`originaltripleset`: a set of RDF triples as extracted from [DBpedia](https://wiki.dbpedia.org/). Each set of RDF triples is a tree. Triples have the subject-predicate-object structure.\n\n`modifiedtripleset`: a set of RDF triples as presented to crowdworkers (for more details on modifications, see below).\n\nOriginal and modified triples serve different purposes: the original triples \u2014 to link data to a knowledge base (DBpedia), whereas the modified triples \u2014 to ensure consistency and homogeneity throughout the data. To train models, the modified triples should be used.\n\n`lexs` (shortened for lexicalisations): a natural language text verbalising the triples. Each lexicalisation has two attributes: a comment (`comment`), and a lexicalisation ID (`lid`). By default, comments have the value `good`, except rare cases when they were manually marked as `toFix`. That was done during the corpus creation, when it was seen that a lexicalisation did not exactly match a triple set.\n\nRussian data has additional optional fields comparing to English:\n\n`<dbpedialinks>`: RDF triples extracted from DBpedia between English and Russian entities by means of the property `sameAs`.\n\n`<links>`: RDF triples created manually for some entities to serve as pointers to translators. There are two types of them:\n\n * with `sameAs` (`Spaniards | sameAs | \u0438\u0441\u043f\u0430\u043d\u0446\u044b`)\n \n * with `includes` (`Tomatoes, guanciale, cheese, olive oil | includes | \u0433\u0443\u0430\u043d\u0447\u0438\u0430\u043b\u0435`). Those were mostly created for string literals to translate some parts of them.\n\nLexicalisations in the Russian WebNLG have a new parameter `lang` (values: `en`, `ru`) because original English texts were kept in the Russian version (see the example above).\n",
109
- "structure-example": "\n```\n{\n\"entry\": {\n\t\"category\": \"Company\",\n\t\"size\": \"4\",\n\t\"shape\": \"(X (X) (X) (X) (X))\",\n\t\"shape_type\": \"sibling\",\n\t\"eid\": \"Id21\",\n\t\"lexs\": [\n\t {\n\t\t\"comment\": \"good\",\n\t\t\"lex\": \"Trane, which was founded on January 1st 1913 in La Crosse, Wisconsin, is based in Ireland. It has 29,000 employees.\",\n\t\t\"lid\": \"Id1\"\n\t }\n\t],\n\t\"modifiedtripleset\": [\n\t {\n\t\t\"subject\": \"Trane\",\n\t\t\"property\": \"foundingDate\",\n\t\t\"object\": \"1913-01-01\"\n\t },\n\t {\n\t\t\"subject\": \"Trane\",\n\t\t\"property\": \"location\",\n\t\t\"object\": \"Ireland\"\n\t },\n\t {\n\t\t\"subject\": \"Trane\",\n\t\t\"property\": \"foundationPlace\",\n\t\t\"object\": \"La_Crosse,_Wisconsin\"\n\t },\n\t {\n\t\t\"subject\": \"Trane\",\n\t\t\"property\": \"numberOfEmployees\",\n\t\t\"object\": \"29000\"\n\t }\n\n\t],\n\t\"originaltriplesets\": {\n\t \"originaltripleset\": [\n\t\t {\n\t\t\t\"subject\": \"Trane\",\n\t\t\t\"property\": \"foundingDate\",\n\t\t\t\"object\": \"1913-01-01\"\n\t\t },\n\t\t {\n\t\t\t\"subject\": \"Trane\",\n\t\t\t\"property\": \"location\",\n\t\t\t\"object\": \"Ireland\"\n\t\t },\n\t\t {\n\t\t\t\"subject\": \"Trane\",\n\t\t\t\"property\": \"foundationPlace\",\n\t\t\t\"object\": \"La_Crosse,_Wisconsin\"\n\t\t },\n\t\t {\n\t\t\t\"subject\": \"Trane\",\n\t\t\t\"property\": \"numberOfEmployees\",\n\t\t\t\"object\": \"29000\"\n\t\t }\n\t ]\n\t}\n\n\t}\n}\n```\n\nThe XML-formatted example is [here](https://webnlg-challenge.loria.fr/docs/#example).\n",
110
- "structure-splits": "\n\n| English (v3.0) | Train | Dev | Test |\n|-----------------|--------|-------|-------|\n| **triple sets** | 13,211 | 1,667 | 1,779 |\n| **texts** | 35,426 | 4,464 | 5,150 |\n|**properties** | 372 | 290 | 220 |\n\n\n| Russian (v3.0) | Train | Dev | Test |\n|-----------------|--------|-------|-------|\n| **triple sets** | 5,573 | 790 | 1,102 |\n| **texts** | 14,239 | 2,026 | 2,780 |\n|**properties** | 226 | 115 | 192 |"
111
- }
112
- }
113
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
web_nlg.py DELETED
@@ -1,165 +0,0 @@
1
- import json
2
- import os
3
- import datasets
4
-
5
- _CITATION = """\
6
- @inproceedings{castro-ferreira20:bilin-bi-direc-webnl-shared,
7
- title={The 2020 Bilingual, Bi-Directional WebNLG+ Shared Task Overview and Evaluation Results (WebNLG+ 2020)},
8
- author={Castro Ferreira, Thiago and
9
- Gardent, Claire and
10
- Ilinykh, Nikolai and
11
- van der Lee, Chris and
12
- Mille, Simon and
13
- Moussallem, Diego and
14
- Shimorina, Anastasia},
15
- booktitle = {Proceedings of the 3rd WebNLG Workshop on Natural Language Generation from the Semantic Web (WebNLG+ 2020)},
16
- pages = "55--76",
17
- year = 2020,
18
- address = {Dublin, Ireland (Virtual)},
19
- publisher = {Association for Computational Linguistics}}
20
- """
21
-
22
- _DESCRIPTION = """\
23
- WebNLG is a bi-lingual dataset (English, Russian) of parallel DBpedia triple sets
24
- and short texts that cover about 450 different DBpedia properties. The WebNLG data
25
- was originally created to promote the development of RDF verbalisers able to
26
- generate short text and to handle micro-planning (i.e., sentence segmentation and
27
- ordering, referring expression generation, aggregation); the goal of the task is
28
- to generate texts starting from 1 to 7 input triples which have entities in common
29
- (so the input is actually a connected Knowledge Graph). The dataset contains about
30
- 17,000 triple sets and 45,000 crowdsourced texts in English, and 7,000 triples sets
31
- and 19,000 crowdsourced texts in Russian. A challenging test set section with
32
- entities and/or properties that have not been seen at training time is available.
33
- """
34
-
35
- _LANG = ["en", "ru"]
36
- _URLs = {
37
- "en": {
38
- "train": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_en_train.json",
39
- "validation": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_en_val.json",
40
- "test": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_en_test.json",
41
- "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/web_nlg_en.zip",
42
- },
43
- "ru": {
44
- "train": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_ru_train.json",
45
- "validation": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_ru_val.json",
46
- "test": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_web_nlg/webnlg_ru_test.json",
47
- "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/web_nlg_ru.zip",
48
- },
49
- }
50
-
51
-
52
- class WebNLG(datasets.GeneratorBasedBuilder):
53
- BUILDER_CONFIGS = [
54
- datasets.BuilderConfig(
55
- name=lang,
56
- version=datasets.Version("1.0.0"),
57
- description="",
58
- )
59
- for lang in _LANG
60
- ]
61
-
62
- def _info(self):
63
- return datasets.DatasetInfo(
64
- description=_DESCRIPTION,
65
- features=datasets.Features(
66
- {
67
- "gem_id": datasets.Value("string"),
68
- "gem_parent_id": datasets.Value("string"),
69
- "input": [datasets.Value("string")],
70
- "target": datasets.Value("string"), # single target for train
71
- "references": [datasets.Value("string")],
72
- "category": datasets.Value("string"),
73
- "webnlg_id": datasets.Value("string"),
74
- }
75
- ),
76
- supervised_keys=None,
77
- homepage="https://webnlg-challenge.loria.fr/challenge_2020/",
78
- citation=_CITATION,
79
- )
80
-
81
- def _split_generators(self, dl_manager):
82
- """Returns SplitGenerators."""
83
- dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
84
- lang = str(self.config.name)
85
- challenge_sets = [
86
- ("challenge_train_sample", f"train_web_nlg_{lang}_RandomSample500.json"),
87
- (
88
- "challenge_validation_sample",
89
- f"validation_web_nlg_{lang}_RandomSample500.json",
90
- ),
91
- (
92
- "challenge_test_scramble",
93
- f"test_web_nlg_{lang}_ScrambleInputStructure500.json",
94
- ),
95
- ]
96
- if lang == "en":
97
- challenge_sets += [
98
- (
99
- "challenge_test_numbers",
100
- f"test_web_nlg_{lang}_replace_numbers_500.json",
101
- )
102
- ]
103
- return [
104
- datasets.SplitGenerator(
105
- name=spl, gen_kwargs={"filepath": dl_dir[spl], "split": spl}
106
- )
107
- for spl in ["train", "validation", "test"]
108
- ] + [
109
- datasets.SplitGenerator(
110
- name=challenge_split,
111
- gen_kwargs={
112
- "filepath": os.path.join(
113
- dl_dir["challenge_set"], f"web_nlg_{self.config.name}", filename
114
- ),
115
- "split": challenge_split,
116
- },
117
- )
118
- for challenge_split, filename in challenge_sets
119
- ]
120
-
121
- def _generate_examples(self, filepath, split, filepaths=None, lang=None):
122
- """Yields examples."""
123
- if "challenge" in split:
124
- exples = json.load(open(filepath, encoding="utf-8"))
125
- if isinstance(exples, dict):
126
- assert len(exples) == 1, "multiple entries found"
127
- exples = list(exples.values())[0]
128
- for id_, exple in enumerate(exples):
129
- if len(exple) == 0:
130
- continue
131
- exple["gem_parent_id"] = exple["gem_id"]
132
- exple["gem_id"] = f"web_nlg_{self.config.name}-{split}-{id_}"
133
- yield id_, exple
134
- else:
135
- with open(filepath, encoding="utf-8") as f:
136
- examples = json.load(f)
137
- id_ = -1
138
- for example in examples["values"]:
139
- if split == "train":
140
- for target in example["target"]:
141
- id_ += 1
142
- yield id_, {
143
- "gem_id": f"web_nlg_{self.config.name}-{split}-{id_}",
144
- "gem_parent_id": f"web_nlg_{self.config.name}-{split}-{id_}",
145
- "input": example["input"],
146
- "target": target,
147
- "references": []
148
- if split == "train"
149
- else example["target"],
150
- "category": example["category"],
151
- "webnlg_id": example["webnlg-id"],
152
- }
153
- else:
154
- id_ += 1
155
- yield id_, {
156
- "gem_id": f"web_nlg_{self.config.name}-{split}-{id_}",
157
- "gem_parent_id": f"web_nlg_{self.config.name}-{split}-{id_}",
158
- "input": example["input"],
159
- "target": example["target"][0]
160
- if len(example["target"]) > 0
161
- else "",
162
- "references": example["target"],
163
- "category": example["category"],
164
- "webnlg_id": example["webnlg-id"],
165
- }