albertvillanova HF staff commited on
Commit
0b45000
1 Parent(s): 82d5bd2

Update loading script

Browse files
Files changed (1) hide show
  1. hyperpartisan_news_detection.py +5 -5
hyperpartisan_news_detection.py CHANGED
@@ -40,7 +40,7 @@ There are 2 parts:
40
  - byarticle: Labeled through crowdsourcing on an article basis. The data contains only articles for which a consensus among the crowdsourcing workers existed.
41
  - bypublisher: Labeled by the overall bias of the publisher as provided by BuzzFeed journalists or MediaBiasFactCheck.com.
42
  """
43
- _URL_BASE = "https://zenodo.org/record/1489920/files/"
44
 
45
 
46
  class HyperpartisanNewsDetection(datasets.GeneratorBasedBuilder):
@@ -101,14 +101,14 @@ class HyperpartisanNewsDetection(datasets.GeneratorBasedBuilder):
101
  """Returns SplitGenerators."""
102
  urls = {
103
  datasets.Split.TRAIN: {
104
- "articles_file": _URL_BASE + "articles-training-" + self.config.name + "-20181122.zip?download=1",
105
- "labels_file": _URL_BASE + "ground-truth-training-" + self.config.name + "-20181122.zip?download=1",
106
  },
107
  }
108
  if self.config.name == "bypublisher":
109
  urls[datasets.Split.VALIDATION] = {
110
- "articles_file": _URL_BASE + "articles-validation-" + self.config.name + "-20181122.zip?download=1",
111
- "labels_file": _URL_BASE + "ground-truth-validation-" + self.config.name + "-20181122.zip?download=1",
112
  }
113
 
114
  data_dir = {}
 
40
  - byarticle: Labeled through crowdsourcing on an article basis. The data contains only articles for which a consensus among the crowdsourcing workers existed.
41
  - bypublisher: Labeled by the overall bias of the publisher as provided by BuzzFeed journalists or MediaBiasFactCheck.com.
42
  """
43
+ _URL_BASE = "data/"
44
 
45
 
46
  class HyperpartisanNewsDetection(datasets.GeneratorBasedBuilder):
 
101
  """Returns SplitGenerators."""
102
  urls = {
103
  datasets.Split.TRAIN: {
104
+ "articles_file": _URL_BASE + "articles-training-" + self.config.name + "-20181122.zip",
105
+ "labels_file": _URL_BASE + "ground-truth-training-" + self.config.name + "-20181122.zip",
106
  },
107
  }
108
  if self.config.name == "bypublisher":
109
  urls[datasets.Split.VALIDATION] = {
110
+ "articles_file": _URL_BASE + "articles-validation-" + self.config.name + "-20181122.zip",
111
+ "labels_file": _URL_BASE + "ground-truth-validation-" + self.config.name + "-20181122.zip",
112
  }
113
 
114
  data_dir = {}