Create test2.py
Browse files
test2.py
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
_CITATION = """\
|
| 2 |
+
@misc{Gokaslan2019OpenWeb,
|
| 3 |
+
title={OpenWebText Corpus},
|
| 4 |
+
author={Aaron Gokaslan*, Vanya Cohen*, Ellie Pavlick, Stefanie Tellex},
|
| 5 |
+
howpublished{\\url{http://Skylion007.github.io/OpenWebTextCorpus}},
|
| 6 |
+
year={2019}
|
| 7 |
+
}
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
_DESCRIPTION = """\
|
| 11 |
+
An open-source replication of the WebText dataset from OpenAI.
|
| 12 |
+
"""
|
| 13 |
+
|
| 14 |
+
_URL = "https://zenodo.org/record/3834942/files/openwebtext.tar.xz"
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
class Openwebtext(datasets.GeneratorBasedBuilder):
|
| 18 |
+
"""The Open WebText dataset."""
|
| 19 |
+
|
| 20 |
+
BUILDER_CONFIGS = [
|
| 21 |
+
datasets.BuilderConfig(
|
| 22 |
+
name="plain_text",
|
| 23 |
+
description="Plain text",
|
| 24 |
+
version=datasets.Version("1.0.0"),
|
| 25 |
+
)
|
| 26 |
+
]
|
| 27 |
+
|
| 28 |
+
def _info(self):
|
| 29 |
+
return datasets.DatasetInfo(
|