Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
ArXiv:
Libraries:
Datasets
Dask
License:
parquet-converter commited on
Commit
c27976a
1 Parent(s): 227f367

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,305 +0,0 @@
1
- ---
2
- annotations_creators:
3
- - no-annotation
4
- language_creators:
5
- - crowdsourced
6
- language:
7
- - en
8
- license:
9
- - cc-by-sa-3.0
10
- - gfdl
11
- multilinguality:
12
- - monolingual
13
- paperswithcode_id: wikitext-2
14
- pretty_name: WikiText
15
- size_categories:
16
- - 1M<n<10M
17
- source_datasets:
18
- - original
19
- task_categories:
20
- - text-generation
21
- - fill-mask
22
- task_ids:
23
- - language-modeling
24
- - masked-language-modeling
25
- dataset_info:
26
- - config_name: wikitext-103-v1
27
- features:
28
- - name: text
29
- dtype: string
30
- splits:
31
- - name: test
32
- num_bytes: 1295579
33
- num_examples: 4358
34
- - name: train
35
- num_bytes: 545142639
36
- num_examples: 1801350
37
- - name: validation
38
- num_bytes: 1154755
39
- num_examples: 3760
40
- download_size: 190229076
41
- dataset_size: 547592973
42
- - config_name: wikitext-2-v1
43
- features:
44
- - name: text
45
- dtype: string
46
- splits:
47
- - name: test
48
- num_bytes: 1270951
49
- num_examples: 4358
50
- - name: train
51
- num_bytes: 10918134
52
- num_examples: 36718
53
- - name: validation
54
- num_bytes: 1134127
55
- num_examples: 3760
56
- download_size: 4475746
57
- dataset_size: 13323212
58
- - config_name: wikitext-103-raw-v1
59
- features:
60
- - name: text
61
- dtype: string
62
- splits:
63
- - name: test
64
- num_bytes: 1305092
65
- num_examples: 4358
66
- - name: train
67
- num_bytes: 546501673
68
- num_examples: 1801350
69
- - name: validation
70
- num_bytes: 1159292
71
- num_examples: 3760
72
- download_size: 191984949
73
- dataset_size: 548966057
74
- - config_name: wikitext-2-raw-v1
75
- features:
76
- - name: text
77
- dtype: string
78
- splits:
79
- - name: test
80
- num_bytes: 1305092
81
- num_examples: 4358
82
- - name: train
83
- num_bytes: 11061733
84
- num_examples: 36718
85
- - name: validation
86
- num_bytes: 1159292
87
- num_examples: 3760
88
- download_size: 4721645
89
- dataset_size: 13526117
90
- ---
91
-
92
- # Dataset Card for "wikitext"
93
-
94
- ## Table of Contents
95
- - [Dataset Description](#dataset-description)
96
- - [Dataset Summary](#dataset-summary)
97
- - [Supported Tasks and Leaderboards](#supported-tasks-and-leaderboards)
98
- - [Languages](#languages)
99
- - [Dataset Structure](#dataset-structure)
100
- - [Data Instances](#data-instances)
101
- - [Data Fields](#data-fields)
102
- - [Data Splits](#data-splits)
103
- - [Dataset Creation](#dataset-creation)
104
- - [Curation Rationale](#curation-rationale)
105
- - [Source Data](#source-data)
106
- - [Annotations](#annotations)
107
- - [Personal and Sensitive Information](#personal-and-sensitive-information)
108
- - [Considerations for Using the Data](#considerations-for-using-the-data)
109
- - [Social Impact of Dataset](#social-impact-of-dataset)
110
- - [Discussion of Biases](#discussion-of-biases)
111
- - [Other Known Limitations](#other-known-limitations)
112
- - [Additional Information](#additional-information)
113
- - [Dataset Curators](#dataset-curators)
114
- - [Licensing Information](#licensing-information)
115
- - [Citation Information](#citation-information)
116
- - [Contributions](#contributions)
117
-
118
- ## Dataset Description
119
-
120
- - **Homepage:** [https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/](https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/)
121
- - **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
122
- - **Paper:** [Pointer Sentinel Mixture Models](https://arxiv.org/abs/1609.07843)
123
- - **Point of Contact:** [Stephen Merity](mailto:[email protected])
124
- - **Size of downloaded dataset files:** 373.28 MB
125
- - **Size of the generated dataset:** 1072.25 MB
126
- - **Total amount of disk used:** 1445.53 MB
127
-
128
- ### Dataset Summary
129
-
130
- The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verified
131
- Good and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike License.
132
-
133
- Compared to the preprocessed version of Penn Treebank (PTB), WikiText-2 is over 2 times larger and WikiText-103 is over
134
- 110 times larger. The WikiText dataset also features a far larger vocabulary and retains the original case, punctuation
135
- and numbers - all of which are removed in PTB. As it is composed of full articles, the dataset is well suited for models
136
- that can take advantage of long term dependencies.
137
-
138
- ### Supported Tasks and Leaderboards
139
-
140
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
141
-
142
- ### Languages
143
-
144
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
145
-
146
- ## Dataset Structure
147
-
148
- ### Data Instances
149
-
150
- #### wikitext-103-raw-v1
151
-
152
- - **Size of downloaded dataset files:** 183.09 MB
153
- - **Size of the generated dataset:** 523.97 MB
154
- - **Total amount of disk used:** 707.06 MB
155
-
156
- An example of 'validation' looks as follows.
157
- ```
158
- This example was too long and was cropped:
159
-
160
- {
161
- "text": "\" The gold dollar or gold one @-@ dollar piece was a coin struck as a regular issue by the United States Bureau of the Mint from..."
162
- }
163
- ```
164
-
165
- #### wikitext-103-v1
166
-
167
- - **Size of downloaded dataset files:** 181.42 MB
168
- - **Size of the generated dataset:** 522.66 MB
169
- - **Total amount of disk used:** 704.07 MB
170
-
171
- An example of 'train' looks as follows.
172
- ```
173
- This example was too long and was cropped:
174
-
175
- {
176
- "text": "\" Senjō no Valkyria 3 : <unk> Chronicles ( Japanese : 戦場のヴァルキュリア3 , lit . Valkyria of the Battlefield 3 ) , commonly referred to..."
177
- }
178
- ```
179
-
180
- #### wikitext-2-raw-v1
181
-
182
- - **Size of downloaded dataset files:** 4.50 MB
183
- - **Size of the generated dataset:** 12.91 MB
184
- - **Total amount of disk used:** 17.41 MB
185
-
186
- An example of 'train' looks as follows.
187
- ```
188
- This example was too long and was cropped:
189
-
190
- {
191
- "text": "\" The Sinclair Scientific Programmable was introduced in 1975 , with the same case as the Sinclair Oxford . It was larger than t..."
192
- }
193
- ```
194
-
195
- #### wikitext-2-v1
196
-
197
- - **Size of downloaded dataset files:** 4.27 MB
198
- - **Size of the generated dataset:** 12.72 MB
199
- - **Total amount of disk used:** 16.99 MB
200
-
201
- An example of 'train' looks as follows.
202
- ```
203
- This example was too long and was cropped:
204
-
205
- {
206
- "text": "\" Senjō no Valkyria 3 : <unk> Chronicles ( Japanese : 戦場のヴァルキュリア3 , lit . Valkyria of the Battlefield 3 ) , commonly referred to..."
207
- }
208
- ```
209
-
210
- ### Data Fields
211
-
212
- The data fields are the same among all splits.
213
-
214
- #### wikitext-103-raw-v1
215
- - `text`: a `string` feature.
216
-
217
- #### wikitext-103-v1
218
- - `text`: a `string` feature.
219
-
220
- #### wikitext-2-raw-v1
221
- - `text`: a `string` feature.
222
-
223
- #### wikitext-2-v1
224
- - `text`: a `string` feature.
225
-
226
- ### Data Splits
227
-
228
- | name | train |validation|test|
229
- |-------------------|------:|---------:|---:|
230
- |wikitext-103-raw-v1|1801350| 3760|4358|
231
- |wikitext-103-v1 |1801350| 3760|4358|
232
- |wikitext-2-raw-v1 | 36718| 3760|4358|
233
- |wikitext-2-v1 | 36718| 3760|4358|
234
-
235
- ## Dataset Creation
236
-
237
- ### Curation Rationale
238
-
239
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
240
-
241
- ### Source Data
242
-
243
- #### Initial Data Collection and Normalization
244
-
245
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
246
-
247
- #### Who are the source language producers?
248
-
249
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
250
-
251
- ### Annotations
252
-
253
- #### Annotation process
254
-
255
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
256
-
257
- #### Who are the annotators?
258
-
259
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
260
-
261
- ### Personal and Sensitive Information
262
-
263
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
264
-
265
- ## Considerations for Using the Data
266
-
267
- ### Social Impact of Dataset
268
-
269
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
270
-
271
- ### Discussion of Biases
272
-
273
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
274
-
275
- ### Other Known Limitations
276
-
277
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
278
-
279
- ## Additional Information
280
-
281
- ### Dataset Curators
282
-
283
- [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)
284
-
285
- ### Licensing Information
286
-
287
- The dataset is available under the [Creative Commons Attribution-ShareAlike License (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/).
288
-
289
- ### Citation Information
290
-
291
- ```
292
- @misc{merity2016pointer,
293
- title={Pointer Sentinel Mixture Models},
294
- author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},
295
- year={2016},
296
- eprint={1609.07843},
297
- archivePrefix={arXiv},
298
- primaryClass={cs.CL}
299
- }
300
- ```
301
-
302
-
303
- ### Contributions
304
-
305
- Thanks to [@thomwolf](https://github.com/thomwolf), [@lewtun](https://github.com/lewtun), [@patrickvonplaten](https://github.com/patrickvonplaten), [@mariamabarham](https://github.com/mariamabarham) for adding this dataset.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
dataset_infos.json DELETED
@@ -1 +0,0 @@
1
- {"wikitext-103-v1": {"description": " The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verified\n Good and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike\n License.\n", "citation": "@misc{merity2016pointer,\n title={Pointer Sentinel Mixture Models},\n author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},\n year={2016},\n eprint={1609.07843},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikitext", "config_name": "wikitext-103-v1", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1295579, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 545142639, "num_examples": 1801350, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1154755, "num_examples": 3760, "dataset_name": "wikitext"}}, "download_checksums": {"https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-v1.zip": {"num_bytes": 190229076, "checksum": "242ba0f20b329cfdf1ccc61e9e9e5b59becf189db7f7a81cd2a0e2fc31539590"}}, "download_size": 190229076, "post_processing_size": null, "dataset_size": 547592973, "size_in_bytes": 737822049}, "wikitext-2-v1": {"description": " The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verified\n Good and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike\n License.\n", "citation": "@misc{merity2016pointer,\n title={Pointer Sentinel Mixture Models},\n author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},\n year={2016},\n eprint={1609.07843},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikitext", "config_name": "wikitext-2-v1", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1270951, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 10918134, "num_examples": 36718, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1134127, "num_examples": 3760, "dataset_name": "wikitext"}}, "download_checksums": {"https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-2-v1.zip": {"num_bytes": 4475746, "checksum": "92675f1d63015c1c8b51f1656a52d5bdbc33aafa60cc47a218a66e7ee817488c"}}, "download_size": 4475746, "post_processing_size": null, "dataset_size": 13323212, "size_in_bytes": 17798958}, "wikitext-103-raw-v1": {"description": " The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verified\n Good and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike\n License.\n", "citation": "@misc{merity2016pointer,\n title={Pointer Sentinel Mixture Models},\n author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},\n year={2016},\n eprint={1609.07843},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikitext", "config_name": "wikitext-103-raw-v1", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1305092, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 546501673, "num_examples": 1801350, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1159292, "num_examples": 3760, "dataset_name": "wikitext"}}, "download_checksums": {"https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-103-raw-v1.zip": {"num_bytes": 191984949, "checksum": "91c00ae287f0d699e18605c84afc9e45c192bc6b7797ff8837e5474655a33794"}}, "download_size": 191984949, "post_processing_size": null, "dataset_size": 548966057, "size_in_bytes": 740951006}, "wikitext-2-raw-v1": {"description": " The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verified\n Good and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike\n License.\n", "citation": "@misc{merity2016pointer,\n title={Pointer Sentinel Mixture Models},\n author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},\n year={2016},\n eprint={1609.07843},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "task_templates": null, "builder_name": "wikitext", "config_name": "wikitext-2-raw-v1", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1305092, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 11061733, "num_examples": 36718, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1159292, "num_examples": 3760, "dataset_name": "wikitext"}}, "download_checksums": {"https://s3.amazonaws.com/research.metamind.io/wikitext/wikitext-2-raw-v1.zip": {"num_bytes": 4721645, "checksum": "ef7edb566e3e2b2d31b29c1fdb0c89a4cc683597484c3dc2517919c615435a11"}}, "download_size": 4721645, "post_processing_size": null, "dataset_size": 13526117, "size_in_bytes": 18247762}}
 
 
wikitext-103-raw-v1/wikitext-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8703fc0b3faee96809391be8cfe26d37193389e434ad56a5d6a817ac2c763ca
3
+ size 732609
wikitext-103-raw-v1/wikitext-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c91dc16abce38a0c35035bf3dece90fb771e579cfe292b6b44135ae459f51bf6
3
+ size 287495562
wikitext-103-raw-v1/wikitext-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2e9d53c0891b60dbf0447385e170d3e7425276d7d032db6d600630fbc8c5c439
3
+ size 26572956
wikitext-103-raw-v1/wikitext-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:906dd6b219b4af9d05ea1534240aba385ec12d8b43b23319d0bf7ee327a44def
3
+ size 657208
wikitext-103-v1/wikitext-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc26b75e3706dd4d1bbb1f7a517e2f51f0f0e5fbd89d1b4504ff3a85ddd2d5de
3
+ size 721734
wikitext-103-v1/wikitext-train-00000-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:8ddb6ed798cdeee9910299a58898ee6f73d12a137ec6338ba421e919284e838c
3
+ size 286018499
wikitext-103-v1/wikitext-train-00001-of-00002.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:27267cbc77575619c42a2cbc7852de083e6b6ecc7a110208c81e423c12f224c9
3
+ size 25684678
wikitext-103-v1/wikitext-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c83e70654f6c4617e7c6cc9797b4b5efc64d374eba8bcfe23167c71fbf010ec4
3
+ size 655105
wikitext-2-raw-v1/wikitext-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a8703fc0b3faee96809391be8cfe26d37193389e434ad56a5d6a817ac2c763ca
3
+ size 732609
wikitext-2-raw-v1/wikitext-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:694011f53c730a614fe22608533e79a1ab47f375c1d1f7d675dab1273dce408d
3
+ size 6357542
wikitext-2-raw-v1/wikitext-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:906dd6b219b4af9d05ea1534240aba385ec12d8b43b23319d0bf7ee327a44def
3
+ size 657208
wikitext-2-v1/wikitext-test.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:aef685dcd8c0e51a23c8ab54495c53db566032ff0a30dc31566d0cb9a19b7cbd
3
+ size 685429
wikitext-2-v1/wikitext-train.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:481db0e6f8e87478c62bfd6283905b6f2ae1078b640c538445919c07b4c1a64d
3
+ size 6068113
wikitext-2-v1/wikitext-validation.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ef706d4b2664ff0b8e441b17282783ab253f6a475bbf08574c5762dbd80ed19a
3
+ size 617737
wikitext.py DELETED
@@ -1,192 +0,0 @@
1
- """TODO(wikitext): Add a description here."""
2
-
3
-
4
- import os
5
-
6
- import datasets
7
-
8
-
9
- _CITATION = """\
10
- @misc{merity2016pointer,
11
- title={Pointer Sentinel Mixture Models},
12
- author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},
13
- year={2016},
14
- eprint={1609.07843},
15
- archivePrefix={arXiv},
16
- primaryClass={cs.CL}
17
- }
18
- """
19
-
20
- _DESCRIPTION = """\
21
- The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verified
22
- Good and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike
23
- License.
24
- """
25
- _HOMEPAGE = "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/"
26
- _LICENSE = "Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)"
27
- _DATA_URL = "https://s3.amazonaws.com/research.metamind.io/wikitext"
28
-
29
-
30
- class WikitextConfig(datasets.BuilderConfig):
31
- """BuilderConfig for GLUE."""
32
-
33
- def __init__(self, data_url, **kwargs):
34
- """BuilderConfig for Wikitext
35
-
36
- Args:
37
- data_url: `string`, url to the dataset (word or raw level)
38
- **kwargs: keyword arguments forwarded to super.
39
- """
40
- super(WikitextConfig, self).__init__(
41
- version=datasets.Version(
42
- "1.0.0",
43
- ),
44
- **kwargs,
45
- )
46
- self.data_url = data_url
47
-
48
-
49
- class Wikitext(datasets.GeneratorBasedBuilder):
50
- """TODO(wikitext_103): Short description of my dataset."""
51
-
52
- # TODO(wikitext_103): Set up version.
53
- VERSION = datasets.Version("0.1.0")
54
- BUILDER_CONFIGS = [
55
- WikitextConfig(
56
- name="wikitext-103-v1",
57
- data_url=_DATA_URL + "/" + "wikitext-103-v1.zip",
58
- description="Word level dataset. No processing is needed other than replacing newlines with <eos> tokens.",
59
- ),
60
- WikitextConfig(
61
- name="wikitext-2-v1",
62
- data_url=_DATA_URL + "/" + "wikitext-2-v1.zip",
63
- description="Word level dataset. No processing is needed other than replacing newlines with <eos> tokens.",
64
- ),
65
- WikitextConfig(
66
- name="wikitext-103-raw-v1",
67
- data_url=_DATA_URL + "/" + "wikitext-103-raw-v1.zip",
68
- description="Raw level dataset: the raw tokens before the addition of <unk> tokens. "
69
- "They should only be used for character level work or for creating newly derived datasets.",
70
- ),
71
- WikitextConfig(
72
- name="wikitext-2-raw-v1",
73
- data_url=_DATA_URL + "/" + "wikitext-2-raw-v1.zip",
74
- description="Raw level dataset: the raw tokens before the addition of <unk> tokens. "
75
- "They should only be used for character level work or for creating newly derived datasets.",
76
- ),
77
- ]
78
-
79
- def _info(self):
80
- # TODO(wikitext): Specifies the datasets.DatasetInfo object
81
- return datasets.DatasetInfo(
82
- # This is the description that will appear on the datasets page.
83
- description=_DESCRIPTION,
84
- # datasets.features.FeatureConnectors
85
- features=datasets.Features(
86
- {
87
- "text": datasets.Value("string")
88
- # These are the features of your dataset like images, labels ...
89
- }
90
- ),
91
- # If there's a common (input, target) tuple from the features,
92
- # specify them here. They'll be used if as_supervised=True in
93
- # builder.as_dataset.
94
- supervised_keys=None,
95
- homepage=_HOMEPAGE,
96
- license=_LICENSE,
97
- citation=_CITATION,
98
- )
99
-
100
- def _split_generators(self, dl_manager):
101
- """Returns SplitGenerators."""
102
- # TODO(wikitext): Downloads the data and defines the splits
103
- # dl_manager is a datasets.download.DownloadManager that can be used to
104
- # download and extract URLs
105
- if self.config.name == "wikitext-103-v1":
106
- data_file = dl_manager.download_and_extract(self.config.data_url)
107
- data_dir = os.path.join(data_file, "wikitext-103")
108
- return [
109
- datasets.SplitGenerator(
110
- name=datasets.Split.TEST,
111
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.test.tokens"), "split": "test"},
112
- ),
113
- datasets.SplitGenerator(
114
- name=datasets.Split.TRAIN,
115
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.train.tokens"), "split": "train"},
116
- ),
117
- datasets.SplitGenerator(
118
- name=datasets.Split.VALIDATION,
119
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.valid.tokens"), "split": "valid"},
120
- ),
121
- ]
122
- else:
123
- if self.config.name == "wikitext-103-raw-v1":
124
- data_file = dl_manager.download_and_extract(self.config.data_url)
125
- data_dir = os.path.join(data_file, "wikitext-103-raw")
126
- return [
127
- datasets.SplitGenerator(
128
- name=datasets.Split.TEST,
129
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.test.raw"), "split": "test"},
130
- ),
131
- datasets.SplitGenerator(
132
- name=datasets.Split.TRAIN,
133
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.train.raw"), "split": "train"},
134
- ),
135
- datasets.SplitGenerator(
136
- name=datasets.Split.VALIDATION,
137
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.valid.raw"), "split": "valid"},
138
- ),
139
- ]
140
- else:
141
- if self.config.name == "wikitext-2-raw-v1":
142
- data_file = dl_manager.download_and_extract(self.config.data_url)
143
- data_dir = os.path.join(data_file, "wikitext-2-raw")
144
- return [
145
- datasets.SplitGenerator(
146
- name=datasets.Split.TEST,
147
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.test.raw"), "split": "test"},
148
- ),
149
- datasets.SplitGenerator(
150
- name=datasets.Split.TRAIN,
151
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.train.raw"), "split": "train"},
152
- ),
153
- datasets.SplitGenerator(
154
- name=datasets.Split.VALIDATION,
155
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.valid.raw"), "split": "valid"},
156
- ),
157
- ]
158
- else:
159
- if self.config.name == "wikitext-2-v1":
160
- data_file = dl_manager.download_and_extract(self.config.data_url)
161
- data_dir = os.path.join(data_file, "wikitext-2")
162
- return [
163
- datasets.SplitGenerator(
164
- name=datasets.Split.TEST,
165
- gen_kwargs={"data_file": os.path.join(data_dir, "wiki.test.tokens"), "split": "test"},
166
- ),
167
- datasets.SplitGenerator(
168
- name=datasets.Split.TRAIN,
169
- gen_kwargs={
170
- "data_file": os.path.join(data_dir, "wiki.train.tokens"),
171
- "split": "train",
172
- },
173
- ),
174
- datasets.SplitGenerator(
175
- name=datasets.Split.VALIDATION,
176
- gen_kwargs={
177
- "data_file": os.path.join(data_dir, "wiki.valid.tokens"),
178
- "split": "valid",
179
- },
180
- ),
181
- ]
182
-
183
- def _generate_examples(self, data_file, split):
184
-
185
- """Yields examples."""
186
- # TODO(wikitext): Yields (key, example) tuples from the dataset
187
- with open(data_file, encoding="utf-8") as f:
188
- for idx, row in enumerate(f):
189
- if row.strip():
190
- yield idx, {"text": row}
191
- else:
192
- yield idx, {"text": ""}