Hanuman2 parquet-converter commited on
Commit
8d12730
·
0 Parent(s):

Duplicate from cimec/lambada

Browse files

Co-authored-by: Parquet-converter (BOT) <parquet-converter@users.noreply.huggingface.co>

.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,219 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ annotations_creators:
3
+ - expert-generated
4
+ language_creators:
5
+ - found
6
+ language:
7
+ - en
8
+ license:
9
+ - cc-by-4.0
10
+ multilinguality:
11
+ - monolingual
12
+ size_categories:
13
+ - 10K<n<100K
14
+ source_datasets:
15
+ - extended|bookcorpus
16
+ task_categories:
17
+ - text2text-generation
18
+ task_ids: []
19
+ paperswithcode_id: lambada
20
+ pretty_name: LAMBADA
21
+ tags:
22
+ - long-range-dependency
23
+ dataset_info:
24
+ config_name: plain_text
25
+ features:
26
+ - name: text
27
+ dtype: string
28
+ - name: domain
29
+ dtype: string
30
+ splits:
31
+ - name: train
32
+ num_bytes: 978174122
33
+ num_examples: 2662
34
+ - name: test
35
+ num_bytes: 1791823
36
+ num_examples: 5153
37
+ - name: validation
38
+ num_bytes: 1703482
39
+ num_examples: 4869
40
+ download_size: 552427340
41
+ dataset_size: 981669427
42
+ configs:
43
+ - config_name: plain_text
44
+ data_files:
45
+ - split: train
46
+ path: plain_text/train-*
47
+ - split: test
48
+ path: plain_text/test-*
49
+ - split: validation
50
+ path: plain_text/validation-*
51
+ default: true
52
+ ---
53
+
54
+ # Dataset Card for LAMBADA
55
+
56
+ ## Table of Contents
57
+ - [Dataset Description](#dataset-description)
58
+ - [Dataset Summary](#dataset-summary)
59
+ - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
60
+ - [Languages](#languages)
61
+ - [Dataset Structure](#dataset-structure)
62
+ - [Data Instances](#data-instances)
63
+ - [Data Fields](#data-fields)
64
+ - [Data Splits](#data-splits)
65
+ - [Dataset Creation](#dataset-creation)
66
+ - [Curation Rationale](#curation-rationale)
67
+ - [Source Data](#source-data)
68
+ - [Annotations](#annotations)
69
+ - [Personal and Sensitive Information](#personal-and-sensitive-information)
70
+ - [Considerations for Using the Data](#considerations-for-using-the-data)
71
+ - [Social Impact of Dataset](#social-impact-of-dataset)
72
+ - [Discussion of Biases](#discussion-of-biases)
73
+ - [Other Known Limitations](#other-known-limitations)
74
+ - [Additional Information](#additional-information)
75
+ - [Dataset Curators](#dataset-curators)
76
+ - [Licensing Information](#licensing-information)
77
+ - [Citation Information](#citation-information)
78
+ - [Contributions](#contributions)
79
+
80
+ ## Dataset Description
81
+
82
+ - **Homepage:** [LAMBADA homepage](https://zenodo.org/record/2630551#.X8UP76pKiIa)
83
+ - **Paper:** [The LAMBADA dataset: Word prediction requiring a broad discourse context∗](https://www.aclweb.org/anthology/P16-1144.pdf)
84
+ - **Data:** https://doi.org/10.5281/zenodo.2630551
85
+
86
+ ### Dataset Summary
87
+
88
+ The LAMBADA evaluates the capabilities of computational models
89
+ for text understanding by means of a word prediction task.
90
+ LAMBADA is a collection of narrative passages sharing the characteristic
91
+ that human subjects are able to guess their last word if
92
+ they are exposed to the whole passage, but not if they
93
+ only see the last sentence preceding the target word.
94
+ To succeed on LAMBADA, computational models cannot
95
+ simply rely on local context, but must be able to
96
+ keep track of information in the broader discourse.
97
+
98
+ The LAMBADA dataset is extracted from BookCorpus and
99
+ consists of 10'022 passages, divided into 4'869 development
100
+ and 5'153 test passages. The training data for language
101
+ models to be tested on LAMBADA include the full text
102
+ of 2'662 novels (disjoint from those in dev+test),
103
+ comprising 203 million words.
104
+
105
+ ### Supported Tasks and Leaderboards
106
+
107
+ Long range dependency evaluated as (last) word prediction
108
+
109
+ ### Languages
110
+
111
+ The text in the dataset is in English. The associated BCP-47 code is `en`.
112
+
113
+ ## Dataset Structure
114
+
115
+ ### Data Instances
116
+
117
+ A data point is a text sequence (passage) including the context, the target sentence (the last one) and the target word. For each passage in the dev and the test splits, the word to be guessed is the last one.
118
+
119
+ The training data include the full text of 2'662 novels (disjoint from
120
+ those in dev+test), comprising more than 200M words. It consists of text from the same domain as the dev+test passages, but not filtered in any way.
121
+
122
+ Each training instance has a `category` field indicating which sub-category the book was extracted from. This field is not given for the dev and test splits.
123
+
124
+ An example looks like this:
125
+
126
+ ```
127
+ {"category": "Mystery",
128
+ "text": "bob could have been called in at this point , but he was n't miffed at his exclusion at all . he was relieved at not being brought into this initial discussion with central command . `` let 's go make some grub , '' said bob as he turned to danny . danny did n't keep his stoic expression , but with a look of irritation got up and left the room with bob",
129
+ }
130
+ ```
131
+
132
+ ### Data Fields
133
+
134
+ - `category`: the sub-category of books from which the book was extracted from. Only available for the training split.
135
+ - `text`: the text (concatenation of context, target sentence and target word). The word to be guessed is the last one.
136
+
137
+ ### Data Splits
138
+
139
+ - train: 2'662 novels
140
+ - dev: 4'869 passages
141
+ - test: 5'153 passages
142
+
143
+ ## Dataset Creation
144
+
145
+ ### Curation Rationale
146
+
147
+ The dataset aims at evaluating the ability of language models to hold long-term contextual memories. Instances are extracted from books because they display long-term dependencies. In particular, the data are curated such that the target words are easy to guess by human subjects when they can look at the whole passage they come from, but nearly impossible if only the last sentence is considered.
148
+
149
+ ### Source Data
150
+
151
+ #### Initial Data Collection and Normalization
152
+
153
+ The corpus was duplicated and potentially offensive material were filtered out with a stop word list.
154
+
155
+ #### Who are the source language producers?
156
+
157
+ The passages are extracted from novels from [Book Corpus](https://github.com/huggingface/datasets/tree/master/datasets/bookcorpus).
158
+
159
+ ### Annotations
160
+
161
+ #### Annotation process
162
+
163
+ The authors required two consecutive subjects (paid crowdsourcers) to exactly match the missing word based on the whole passage (comprising the context and the target sentence), and made sure that no subject (out of ten) was able to provide it based on local context only, even when given 3 guesses.
164
+
165
+ #### Who are the annotators?
166
+
167
+ The text is self-annotated but was curated by asking (paid) crowdsourcers to guess the last word.
168
+
169
+ ### Personal and Sensitive Information
170
+
171
+ [More Information Needed]
172
+
173
+ ## Considerations for Using the Data
174
+
175
+ ### Social Impact of Dataset
176
+
177
+ [More Information Needed]
178
+
179
+ ### Discussion of Biases
180
+
181
+ [More Information Needed]
182
+
183
+ ### Other Known Limitations
184
+
185
+ [More Information Needed]
186
+
187
+ ## Additional Information
188
+
189
+ ### Dataset Curators
190
+
191
+ [More Information Needed]
192
+
193
+ ### Licensing Information
194
+
195
+ The dataset is released under the [CC BY 4.0](Creative Commons Attribution 4.0 International) license.
196
+
197
+ ### Citation Information
198
+
199
+ ```
200
+ @InProceedings{paperno-EtAl:2016:P16-1,
201
+ author = {Paperno, Denis and Kruszewski, Germ\'{a}n and Lazaridou,
202
+ Angeliki and Pham, Ngoc Quan and Bernardi, Raffaella and Pezzelle,
203
+ Sandro and Baroni, Marco and Boleda, Gemma and Fernandez, Raquel},
204
+ title = {The {LAMBADA} dataset: Word prediction requiring a broad
205
+ discourse context},
206
+ booktitle = {Proceedings of the 54th Annual Meeting of the Association for
207
+ Computational Linguistics (Volume 1: Long Papers)},
208
+ month = {August},
209
+ year = {2016},
210
+ address = {Berlin, Germany},
211
+ publisher = {Association for Computational Linguistics},
212
+ pages = {1525--1534},
213
+ url = {http://www.aclweb.org/anthology/P16-1144}
214
+ }
215
+ ```
216
+
217
+ ### Contributions
218
+
219
+ Thanks to [@VictorSanh](https://github.com/VictorSanh) for adding this dataset.
plain_text/test-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9ec8a3b32099a8bb590515352e09a9fc790e044162c6d1af35c26efd810860e9
3
+ size 1136216
plain_text/train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:903493579c4f687f8d01b4270eac6e3dd50593ea4c58561137b13e772311ff0c
3
+ size 268979256
plain_text/train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0020cbca4fab7f06fed1de00118fde1ed99c9619988f066d971c57d9d9572e5e
3
+ size 281232947
plain_text/validation-00000-of-00001.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:dc06d2ead0fc40bd0845936d6b2375f00396d7baac92d8335707d6a68b3d25a9
3
+ size 1078921