databasedan commited on
Commit
ef5ec90
1 Parent(s): d20aeb4

Reference URL Lists from HuggingFace Repo

Browse files

Add configuration to reference the URL lists in the HuggingFace repo, rather than GitHub.

Files changed (1) hide show
  1. cnn_dailymail.py +6 -4
cnn_dailymail.py CHANGED
@@ -67,15 +67,17 @@ _CITATION = """\
67
  _DL_URLS = {
68
  "cnn_stories": "https://huggingface.co/datasets/cnn_dailymail/resolve/11343c3752184397d56efc19a8a7cceb68089318/data/cnn_stories.tgz",
69
  "dm_stories": "https://huggingface.co/datasets/cnn_dailymail/resolve/11343c3752184397d56efc19a8a7cceb68089318/data/dailymail_stories.tgz",
70
- "train": "https://raw.githubusercontent.com/abisee/cnn-dailymail/master/url_lists/all_train.txt",
71
- "validation": "https://raw.githubusercontent.com/abisee/cnn-dailymail/master/url_lists/all_val.txt",
72
- "test": "https://raw.githubusercontent.com/abisee/cnn-dailymail/master/url_lists/all_test.txt",
73
  }
74
 
75
  _HIGHLIGHTS = "highlights"
76
  _ARTICLE = "article"
77
 
78
  _SUPPORTED_VERSIONS = [
 
 
79
  # Using cased version.
80
  datasets.Version("3.0.0", "Using cased version."),
81
  # Same data as 0.0.2
@@ -86,7 +88,7 @@ _SUPPORTED_VERSIONS = [
86
  ]
87
 
88
 
89
- _DEFAULT_VERSION = datasets.Version("3.0.0", "Using cased version.")
90
 
91
 
92
  class CnnDailymailConfig(datasets.BuilderConfig):
 
67
  _DL_URLS = {
68
  "cnn_stories": "https://huggingface.co/datasets/cnn_dailymail/resolve/11343c3752184397d56efc19a8a7cceb68089318/data/cnn_stories.tgz",
69
  "dm_stories": "https://huggingface.co/datasets/cnn_dailymail/resolve/11343c3752184397d56efc19a8a7cceb68089318/data/dailymail_stories.tgz",
70
+ "train": "https://huggingface.co/datasets/cnn_dailymail/resolve/d20aeb41b7adb5b6800fbb08a6b1a3e9d9a90060/all_train.txt",
71
+ "validation": "https://huggingface.co/datasets/cnn_dailymail/resolve/d20aeb41b7adb5b6800fbb08a6b1a3e9d9a90060/all_val.txt",
72
+ "test": "https://huggingface.co/datasets/cnn_dailymail/resolve/d20aeb41b7adb5b6800fbb08a6b1a3e9d9a90060/all_test.txt",
73
  }
74
 
75
  _HIGHLIGHTS = "highlights"
76
  _ARTICLE = "article"
77
 
78
  _SUPPORTED_VERSIONS = [
79
+ # Using cased version.
80
+ datasets.Version("4.0.0", "Using HuggingFace Hosted URL Lists."),
81
  # Using cased version.
82
  datasets.Version("3.0.0", "Using cased version."),
83
  # Same data as 0.0.2
 
88
  ]
89
 
90
 
91
+ _DEFAULT_VERSION = datasets.Version("4.0.0", "Using HuggingFace hosted URL lists.")
92
 
93
 
94
  class CnnDailymailConfig(datasets.BuilderConfig):