albertvillanova HF staff commited on
Commit
713d981
1 Parent(s): 5b27e04

Host multi_news data on the Hub instead of Google Drive (#4585)

Browse files

* Use data files hosted on the Hub

* Update metadata JSON

* Fix style

* Update dummy data

Commit from https://github.com/huggingface/datasets/commit/dad0ef80cdbcded21cc4b443f15f5cb291817bad

dataset_infos.json CHANGED
@@ -1 +1 @@
1
- {"default": {"description": "\nMulti-News, consists of news articles and human-written summaries\nof these articles from the site newser.com.\nEach summary is professionally written by editors and\nincludes links to the original articles cited.\n\nThere are two features:\n - document: text of news articles seperated by special token \"|||||\".\n - summary: news summary.\n", "citation": "\n@misc{alex2019multinews,\n title={Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Model},\n author={Alexander R. Fabbri and Irene Li and Tianwei She and Suyi Li and Dragomir R. Radev},\n year={2019},\n eprint={1906.01749},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://github.com/Alex-Fabbri/Multi-News", "license": "", "features": {"document": {"dtype": "string", "id": null, "_type": "Value"}, "summary": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "document", "output": "summary"}, "task_templates": null, "builder_name": "multi_news", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 558392305, "num_examples": 44972, "dataset_name": "multi_news"}, "validation": {"name": "validation", "num_bytes": 68272440, "num_examples": 5622, "dataset_name": "multi_news"}, "test": {"name": "test", "num_bytes": 70032132, "num_examples": 5622, "dataset_name": "multi_news"}}, "download_checksums": {"https://drive.google.com/uc?export=download&id=1wHAWDOwOoQWSj7HYpyJ3Aeud8WhhaJ7P": {"num_bytes": 547512283, "checksum": "627781c8ce55d528fcdacd495db45583a915e2d24b7983b0a5a6693ede933bb1"}, "https://drive.google.com/uc?export=download&id=1QVgswwhVTkd3VLCzajK6eVkcrSWEK6kq": {"num_bytes": 58793912, "checksum": "e9e82b8f413b0f1ed4eb7c883f93bb744f829c218c1608b6ba7615d687d07121"}, "https://drive.google.com/uc?export=download&id=1p_u9_jpz3Zbj0EL05QFX6wvJAahmOn6h": {"num_bytes": 66875522, "checksum": "f0a43902da366eea2b882e39ddd4c0975ad44aba6b61095a2ea90362e9e2bb65"}, "https://drive.google.com/uc?export=download&id=1Y1lBbBU5Q0aJMqLhYEOdEtTqQ85XnRRM": {"num_bytes": 7295302, "checksum": "bb08a078e0cb2b8ca9cc0fe3bfbe9d4098dee706bd00eb97449155e41b880157"}, "https://drive.google.com/uc?export=download&id=1-n_6fj-1nM7sWtBSNkQCSfl5Rb3zPVfr": {"num_bytes": 68999509, "checksum": "138d3ac2dc899cbcd2e3745aaa94d1c1db55fb7058d9df4ba3ef2dac05a3a186"}, "https://drive.google.com/uc?export=download&id=1CX_YcgQ3WwNC1fXBpMfwMXFPCqsd9Lbp": {"num_bytes": 7309099, "checksum": "fa97cf91a62ae82a0af6da88f2ddf8e06eb4e3b90f7971d8e0c516436518fae3"}}, "download_size": 756785627, "post_processing_size": null, "dataset_size": 696696877, "size_in_bytes": 1453482504}}
 
1
+ {"default": {"description": "\nMulti-News, consists of news articles and human-written summaries\nof these articles from the site newser.com.\nEach summary is professionally written by editors and\nincludes links to the original articles cited.\n\nThere are two features:\n - document: text of news articles seperated by special token \"|||||\".\n - summary: news summary.\n", "citation": "\n@misc{alex2019multinews,\n title={Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Model},\n author={Alexander R. Fabbri and Irene Li and Tianwei She and Suyi Li and Dragomir R. Radev},\n year={2019},\n eprint={1906.01749},\n archivePrefix={arXiv},\n primaryClass={cs.CL}\n}\n", "homepage": "https://github.com/Alex-Fabbri/Multi-News", "license": "For non-commercial research and educational purposes only", "features": {"document": {"dtype": "string", "id": null, "_type": "Value"}, "summary": {"dtype": "string", "id": null, "_type": "Value"}}, "post_processed": null, "supervised_keys": {"input": "document", "output": "summary"}, "task_templates": null, "builder_name": "multi_news", "config_name": "default", "version": {"version_str": "1.0.0", "description": null, "major": 1, "minor": 0, "patch": 0}, "splits": {"train": {"name": "train", "num_bytes": 558392265, "num_examples": 44972, "dataset_name": "multi_news"}, "validation": {"name": "validation", "num_bytes": 68272432, "num_examples": 5622, "dataset_name": "multi_news"}, "test": {"name": "test", "num_bytes": 70032124, "num_examples": 5622, "dataset_name": "multi_news"}}, "download_checksums": {"https://huggingface.co/datasets/multi_news/resolve/main/data/train.src.cleaned": {"num_bytes": 547512283, "checksum": "627781c8ce55d528fcdacd495db45583a915e2d24b7983b0a5a6693ede933bb1"}, "https://huggingface.co/datasets/multi_news/resolve/main/data/train.tgt": {"num_bytes": 58793912, "checksum": "e9e82b8f413b0f1ed4eb7c883f93bb744f829c218c1608b6ba7615d687d07121"}, "https://huggingface.co/datasets/multi_news/resolve/main/data/val.src.cleaned": {"num_bytes": 66875522, "checksum": "f0a43902da366eea2b882e39ddd4c0975ad44aba6b61095a2ea90362e9e2bb65"}, "https://huggingface.co/datasets/multi_news/resolve/main/data/val.tgt": {"num_bytes": 7295302, "checksum": "bb08a078e0cb2b8ca9cc0fe3bfbe9d4098dee706bd00eb97449155e41b880157"}, "https://huggingface.co/datasets/multi_news/resolve/main/data/test.src.cleaned": {"num_bytes": 68999509, "checksum": "138d3ac2dc899cbcd2e3745aaa94d1c1db55fb7058d9df4ba3ef2dac05a3a186"}, "https://huggingface.co/datasets/multi_news/resolve/main/data/test.tgt": {"num_bytes": 7309099, "checksum": "fa97cf91a62ae82a0af6da88f2ddf8e06eb4e3b90f7971d8e0c516436518fae3"}}, "download_size": 756785627, "post_processing_size": null, "dataset_size": 696696821, "size_in_bytes": 1453482448}}
dummy/1.0.0/dummy_data.zip CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:f5865381204255e028742105b52fed610f34ea507e8b8d6bf0eb68d951eb4926
3
- size 1891
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:775d54cec4e222ea84c1e1533cf1ccf6d628646970b107e67dc6df1e8a372486
3
+ size 1388
multi_news.py CHANGED
@@ -19,6 +19,10 @@
19
  import datasets
20
 
21
 
 
 
 
 
22
  _CITATION = """
23
  @misc{alex2019multinews,
24
  title={Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Model},
@@ -41,18 +45,19 @@ There are two features:
41
  - summary: news summary.
42
  """
43
 
 
44
  _URLs = {
45
  "train": [
46
- "https://drive.google.com/uc?export=download&id=1wHAWDOwOoQWSj7HYpyJ3Aeud8WhhaJ7P",
47
- "https://drive.google.com/uc?export=download&id=1QVgswwhVTkd3VLCzajK6eVkcrSWEK6kq",
48
  ],
49
  "val": [
50
- "https://drive.google.com/uc?export=download&id=1p_u9_jpz3Zbj0EL05QFX6wvJAahmOn6h",
51
- "https://drive.google.com/uc?export=download&id=1Y1lBbBU5Q0aJMqLhYEOdEtTqQ85XnRRM",
52
  ],
53
  "test": [
54
- "https://drive.google.com/uc?export=download&id=1-n_6fj-1nM7sWtBSNkQCSfl5Rb3zPVfr",
55
- "https://drive.google.com/uc?export=download&id=1CX_YcgQ3WwNC1fXBpMfwMXFPCqsd9Lbp",
56
  ],
57
  }
58
 
@@ -70,7 +75,8 @@ class MultiNews(datasets.GeneratorBasedBuilder):
70
  description=_DESCRIPTION,
71
  features=datasets.Features({_DOCUMENT: datasets.Value("string"), _SUMMARY: datasets.Value("string")}),
72
  supervised_keys=(_DOCUMENT, _SUMMARY),
73
- homepage="https://github.com/Alex-Fabbri/Multi-News",
 
74
  citation=_CITATION,
75
  )
76
 
 
19
  import datasets
20
 
21
 
22
+ _HOMEPAGE = "https://github.com/Alex-Fabbri/Multi-News"
23
+
24
+ _LICENSE = "For non-commercial research and educational purposes only"
25
+
26
  _CITATION = """
27
  @misc{alex2019multinews,
28
  title={Multi-News: a Large-Scale Multi-Document Summarization Dataset and Abstractive Hierarchical Model},
 
45
  - summary: news summary.
46
  """
47
 
48
+ _REPO = "https://huggingface.co/datasets/multi_news/resolve/main/data"
49
  _URLs = {
50
  "train": [
51
+ f"{_REPO}/train.src.cleaned",
52
+ f"{_REPO}/train.tgt",
53
  ],
54
  "val": [
55
+ f"{_REPO}/val.src.cleaned",
56
+ f"{_REPO}/val.tgt",
57
  ],
58
  "test": [
59
+ f"{_REPO}/test.src.cleaned",
60
+ f"{_REPO}/test.tgt",
61
  ],
62
  }
63
 
 
75
  description=_DESCRIPTION,
76
  features=datasets.Features({_DOCUMENT: datasets.Value("string"), _SUMMARY: datasets.Value("string")}),
77
  supervised_keys=(_DOCUMENT, _SUMMARY),
78
+ homepage=_HOMEPAGE,
79
+ license=_LICENSE,
80
  citation=_CITATION,
81
  )
82