Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
Files changed (3)
- README.md+33-7
- dataset_infos.json+1-1
- wikitext.py+25-21
123456726 unmodified lines34353637383940413 unmodified lines454647484950145 unmodified lines196197198199200201202203204205206207208209210211---languages:- enpaperswithcode_id: wikitext-2---# Dataset Card for "wikitext"26 unmodified lines- **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/)- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)- **Paper:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)- **Point of Contact:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)- **Size of downloaded dataset files:** 373.28 MB- **Size of the generated dataset:** 1072.25 MB- **Total amount of disk used:** 1445.53 MB3 unmodified linesThe WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verifiedGood and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike License.### Supported Tasks and Leaderboards[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)145 unmodified lines### Licensing Information[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)### Citation Information```@InProceedings{wikitext,author={Stephen, Merity and Caiming ,Xiong and James, Bradbury and Richard Socher}year=2016}```1234567891011121314151617181920212223242526 unmodified lines52535455565758593 unmodified lines6364656667686970717273145 unmodified lines219220221222223224225226227228229230231232233234235236237---annotations_creators:- no-annotationlanguage_creators:- crowdsourcedlanguages:- enlicenses:- cc-by-sa-3-0- gfdl-1-3-or-latermultilinguality:- monolingualpaperswithcode_id: wikitext-2pretty_name: WikiTextsize_categories:- 1M<n<10Msource_datasets:- originaltask_categories:- sequence-modelingtask_ids:- language-modeling---# Dataset Card for "wikitext"26 unmodified lines- **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/)- **Repository:** [More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)- **Paper:** [Pointer Sentinel Mixture Models](https://arxiv.org/abs/1609.07843)- **Point of Contact:** [Stephen Merity](mailto:smerity@salesforce.com)- **Size of downloaded dataset files:** 373.28 MB- **Size of the generated dataset:** 1072.25 MB- **Total amount of disk used:** 1445.53 MB3 unmodified linesThe WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verifiedGood and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike License.Compared to the preprocessed version of Penn Treebank (PTB), WikiText-2 is over 2 times larger and WikiText-103 is over110 times larger. The WikiText dataset also features a far larger vocabulary and retains the original case, punctuationand numbers - all of which are removed in PTB. As it is composed of full articles, the dataset is well suited for modelsthat can take advantage of long term dependencies.### Supported Tasks and Leaderboards[More Information Needed](https://github.com/huggingface/datasets/blob/master/CONTRIBUTING.md#how-to-contribute-to-the-dataset-cards)145 unmodified lines### Licensing InformationThe dataset is available under the [Creative Commons Attribution-ShareAlike License (CC BY-SA 4.0)](https://creativecommons.org/licenses/by-sa/4.0/).### Citation Information```@misc{merity2016pointer,title={Pointer Sentinel Mixture Models},author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},year={2016},eprint={1609.07843},archivePrefix={arXiv},primaryClass={cs.CL}}```
1{"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 License.\n", "citation": "@InProceedings{wikitext,\n author={Stephen, Merity and Caiming ,Xiong and James, Bradbury and Richard Socher}\n year=2016\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikitext", "config_name": "wikitext-103-raw-v1", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1306182, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 546951363, "num_examples": 1801350, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1160232, "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, "dataset_size": 549417777, "size_in_bytes": 741402726}, "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 License.\n", "citation": "@InProceedings{wikitext,\n author={Stephen, Merity and Caiming ,Xiong and James, Bradbury and Richard Socher}\n year=2016\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikitext", "config_name": "wikitext-2-raw-v1", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1306182, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 11070901, "num_examples": 36718, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1160232, "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, "dataset_size": 13537315, "size_in_bytes": 18258960}, "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 License.\n", "citation": "@InProceedings{wikitext,\n author={Stephen, Merity and Caiming ,Xiong and James, Bradbury and Richard Socher}\n year=2016\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikitext", "config_name": "wikitext-103-v1", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1296669, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 545592329, "num_examples": 1801350, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1155695, "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, "dataset_size": 548044693, "size_in_bytes": 738273769}, "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 License.\n", "citation": "@InProceedings{wikitext,\n author={Stephen, Merity and Caiming ,Xiong and James, Bradbury and Richard Socher}\n year=2016\n}\n", "homepage": "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/", "license": "", "features": {"text": {"dtype": "string", "id": null, "_type": "Value"}}, "supervised_keys": null, "builder_name": "wikitext", "config_name": "wikitext-2-v1", "version": {"version_str": "1.0.0", "description": null, "datasets_version_to_prepare": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"test": {"name": "test", "num_bytes": 1272041, "num_examples": 4358, "dataset_name": "wikitext"}, "train": {"name": "train", "num_bytes": 10927302, "num_examples": 36718, "dataset_name": "wikitext"}, "validation": {"name": "validation", "num_bytes": 1135067, "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, "dataset_size": 13334410, "size_in_bytes": 17810156}}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}}
5 unmodified lines67891011121314151617181920212223242523 unmodified lines4950515253545556575859606162636465666768697071727314 unmodified lines88899091929394955 unmodified linesimport datasets# TODO(wikitext): BibTeX citation_CITATION = """\@InProceedings{wikitext,author={Stephen, Merity and Caiming ,Xiong and James, Bradbury and Richard Socher}year={2016}}"""# TODO(wikitext):_DESCRIPTION = """\The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verifiedGood and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlike License."""_URL = "https://blog.einstein.ai/the-wikitext-long-term-dependency-language-modeling-dataset/"_DATA_URL = "https://s3.amazonaws.com/research.metamind.io/wikitext"23 unmodified linesVERSION = datasets.Version("0.1.0")BUILDER_CONFIGS = [WikitextConfig(name="wikitext-103-raw-v1",data_url=_DATA_URL + "/" + "wikitext-103-raw-v1.zip",description="word level dataset. No processing is needed other than replacing newlines with <eos> tokens.",),WikitextConfig(name="wikitext-2-raw-v1",data_url=_DATA_URL + "/" + "wikitext-2-raw-v1.zip",description="word level dataset. No processing is needed other than replacing newlines with <eos> tokens.",),WikitextConfig(name="wikitext-103-v1",data_url=_DATA_URL + "/" + "wikitext-103-v1.zip",description="raw level dataset. The raw tokens before the addition of <unk> tokens. ""They should only be used for character level work or for creating newly derived datasets.",),WikitextConfig(name="wikitext-2-v1",data_url=_DATA_URL + "/" + "wikitext-2-v1.zip",description="raw level dataset. The raw tokens before the addition of <unk> tokens. ""They should only be used for character level work or for creating newly derived datasets.",),]14 unmodified lines# specify them here. They'll be used if as_supervised=True in# builder.as_dataset.supervised_keys=None,# Homepage of the dataset for documentationhomepage=_URL,citation=_CITATION,)5 unmodified lines6789101112131415161718192021222324252627282923 unmodified lines5354555657585960616263646566676869707172737475767714 unmodified lines92939495969798995 unmodified linesimport datasets_CITATION = """\@misc{merity2016pointer,title={Pointer Sentinel Mixture Models},author={Stephen Merity and Caiming Xiong and James Bradbury and Richard Socher},year={2016},eprint={1609.07843},archivePrefix={arXiv},primaryClass={cs.CL}}"""_DESCRIPTION = """\The WikiText language modeling dataset is a collection of over 100 million tokens extracted from the set of verifiedGood and Featured articles on Wikipedia. The dataset is available under the Creative Commons Attribution-ShareAlikeLicense."""_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)"_DATA_URL = "https://s3.amazonaws.com/research.metamind.io/wikitext"23 unmodified linesVERSION = datasets.Version("0.1.0")BUILDER_CONFIGS = [WikitextConfig(name="wikitext-103-v1",data_url=_DATA_URL + "/" + "wikitext-103-v1.zip",description="Word level dataset. No processing is needed other than replacing newlines with <eos> tokens.",),WikitextConfig(name="wikitext-2-v1",data_url=_DATA_URL + "/" + "wikitext-2-v1.zip",description="Word level dataset. No processing is needed other than replacing newlines with <eos> tokens.",),WikitextConfig(name="wikitext-103-raw-v1",data_url=_DATA_URL + "/" + "wikitext-103-raw-v1.zip",description="Raw level dataset: the raw tokens before the addition of <unk> tokens. ""They should only be used for character level work or for creating newly derived datasets.",),WikitextConfig(name="wikitext-2-raw-v1",data_url=_DATA_URL + "/" + "wikitext-2-raw-v1.zip",description="Raw level dataset: the raw tokens before the addition of <unk> tokens. ""They should only be used for character level work or for creating newly derived datasets.",),]14 unmodified lines# specify them here. They'll be used if as_supervised=True in# builder.as_dataset.supervised_keys=None,homepage=_HOMEPAGE,license=_LICENSE,citation=_CITATION,)
README.md+33-7
dataset_infos.json+1-1
wikitext.py+25-21