Datasets:
Update files from the datasets library (from 1.1.3)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.1.3
- dataset_infos.json +1 -1
- discofuse.py +3 -5
dataset_infos.json
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"discofuse-sport": {"description": " DISCOFUSE is a large scale dataset for discourse-based sentence fusion
|
|
|
|
| 1 |
+
{"discofuse-sport": {"description": " DISCOFUSE is a large scale dataset for discourse-based sentence fusion.\n", "citation": "@InProceedings{GevaEtAl2019,\n title = {DiscoFuse: A Large-Scale Dataset for Discourse-Based Sentence Fusion},\n author = {Geva, Mor and Malmi, Eric and Szpektor, Idan and Berant, Jonathan},\n booktitle = {Proceedings of the 2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics},\n note = {arXiv preprint arXiv:1902.10526},\n year = {2019}\n}\n\n", "homepage": "https://github.com/google-research-datasets/discofuse", "license": "", "features": {"connective_string": {"dtype": "string", "id": null, "_type": "Value"}, "discourse_type": {"dtype": "string", "id": null, "_type": "Value"}, "coherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_pronoun": {"dtype": "float32", "id": null, "_type": "Value"}, "incoherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "incoherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_nominal": {"dtype": "float32", "id": null, "_type": "Value"}, "coherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "discofuse", "config_name": "discofuse-sport", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 14736279993, "num_examples": 43291020, "dataset_name": "discofuse"}, "test": {"name": "test", "num_bytes": 151656323, "num_examples": 445521, "dataset_name": "discofuse"}, "validation": {"name": "validation", "num_bytes": 150207737, "num_examples": 440902, "dataset_name": "discofuse"}}, "download_checksums": {"https://storage.googleapis.com/discofuse.appspot.com/discofuse_v1_sports.zip": {"num_bytes": 4326637746, "checksum": "a390083c7923e11efeeea04a9a79074149e5ef9be614466f50aec28f1a5eec41"}}, "download_size": 4326637746, "post_processing_size": null, "dataset_size": 15038144053, "size_in_bytes": 19364781799}, "discofuse-wikipedia": {"description": " DISCOFUSE is a large scale dataset for discourse-based sentence fusion.\n", "citation": "@InProceedings{GevaEtAl2019,\n title = {DiscoFuse: A Large-Scale Dataset for Discourse-Based Sentence Fusion},\n author = {Geva, Mor and Malmi, Eric and Szpektor, Idan and Berant, Jonathan},\n booktitle = {Proceedings of the 2019 Annual Conference of the North American Chapter of the Association for Computational Linguistics},\n note = {arXiv preprint arXiv:1902.10526},\n year = {2019}\n}\n\n", "homepage": "https://github.com/google-research-datasets/discofuse", "license": "", "features": {"connective_string": {"dtype": "string", "id": null, "_type": "Value"}, "discourse_type": {"dtype": "string", "id": null, "_type": "Value"}, "coherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_pronoun": {"dtype": "float32", "id": null, "_type": "Value"}, "incoherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "incoherent_second_sentence": {"dtype": "string", "id": null, "_type": "Value"}, "has_coref_type_nominal": {"dtype": "float32", "id": null, "_type": "Value"}, "coherent_first_sentence": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": null, "builder_name": "discofuse", "config_name": "discofuse-wikipedia", "version": {"version_str": "1.0.0", "description": "", "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 6377924196, "num_examples": 16310585, "dataset_name": "discofuse"}, "test": {"name": "test", "num_bytes": 64008158, "num_examples": 163657, "dataset_name": "discofuse"}, "validation": {"name": "validation", "num_bytes": 65682035, "num_examples": 168081, "dataset_name": "discofuse"}}, "download_checksums": {"https://storage.googleapis.com/discofuse.appspot.com/discofuse_v1_wikipedia.zip": {"num_bytes": 1717422334, "checksum": "e8a5ec52cdd9820ce9b410b47c3a57a49a300470c976202cd7caab613658ebfe"}}, "download_size": 1717422334, "post_processing_size": null, "dataset_size": 6507614389, "size_in_bytes": 8225036723}}
|
discofuse.py
CHANGED
|
@@ -8,9 +8,7 @@ import os
|
|
| 8 |
import datasets
|
| 9 |
|
| 10 |
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
_URL_ = "https://storage.googleapis.com/discofuse_dataset_v1/"
|
| 14 |
_CITATION = """\
|
| 15 |
@InProceedings{GevaEtAl2019,
|
| 16 |
title = {DiscoFuse: A Large-Scale Dataset for Discourse-Based Sentence Fusion},
|
|
@@ -51,10 +49,10 @@ class Discofuse(datasets.GeneratorBasedBuilder):
|
|
| 51 |
VERSION = datasets.Version("1.0.0")
|
| 52 |
BUILDER_CONFIGS = [
|
| 53 |
DiscofuseConfig(
|
| 54 |
-
name="discofuse-sport", description="sentence fusion", data_url=_URL_ + "discofuse_v1_sports.
|
| 55 |
),
|
| 56 |
DiscofuseConfig(
|
| 57 |
-
name="discofuse-wikipedia", description="sentence fusion", data_url=_URL_ + "discofuse_v1_wikipedia.
|
| 58 |
),
|
| 59 |
]
|
| 60 |
|
|
|
|
| 8 |
import datasets
|
| 9 |
|
| 10 |
|
| 11 |
+
_URL_ = "https://storage.googleapis.com/discofuse.appspot.com/"
|
|
|
|
|
|
|
| 12 |
_CITATION = """\
|
| 13 |
@InProceedings{GevaEtAl2019,
|
| 14 |
title = {DiscoFuse: A Large-Scale Dataset for Discourse-Based Sentence Fusion},
|
|
|
|
| 49 |
VERSION = datasets.Version("1.0.0")
|
| 50 |
BUILDER_CONFIGS = [
|
| 51 |
DiscofuseConfig(
|
| 52 |
+
name="discofuse-sport", description="sentence fusion", data_url=_URL_ + "discofuse_v1_sports.zip"
|
| 53 |
),
|
| 54 |
DiscofuseConfig(
|
| 55 |
+
name="discofuse-wikipedia", description="sentence fusion", data_url=_URL_ + "discofuse_v1_wikipedia.zip"
|
| 56 |
),
|
| 57 |
]
|
| 58 |
|