Datasets:
GEM
/

Languages:
English
License:
Sebastian Gehrmann commited on
Commit
1c10c7d
1 Parent(s): 22c2550
Files changed (1) hide show
  1. xsum.py +4 -6
xsum.py CHANGED
@@ -17,11 +17,9 @@ _DESCRIPTION = """\
17
  This is the XSUM subset of the GEM benchmark.
18
  """
19
  _URLs = {
20
- "xsum": {
21
- "data": "http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz",
22
- "splits": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_xsum_confidence_0.8.json",
23
- "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/xsum.zip",
24
- },
25
  }
26
 
27
  _XSUM_REMOVE_LINES = set(
@@ -71,7 +69,7 @@ class Xsum(datasets.GeneratorBasedBuilder):
71
 
72
  def _split_generators(self, dl_manager):
73
  """Returns SplitGenerators."""
74
- dl_dir = dl_manager.download_and_extract(_URLs[self.config.name])
75
  challenge_sets = [
76
  ("challenge_train_sample", "train_xsum_RandomSample500.json"),
77
  ("challenge_validation_sample", "validation_xsum_RandomSample500.json"),
 
17
  This is the XSUM subset of the GEM benchmark.
18
  """
19
  _URLs = {
20
+ "data": "http://bollin.inf.ed.ac.uk/public/direct/XSUM-EMNLP18-Summary-Data-Original.tar.gz",
21
+ "splits": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_xsum_confidence_0.8.json",
22
+ "challenge_set": "https://storage.googleapis.com/huggingface-nlp/datasets/gem/gem_challenge_sets/xsum.zip",
 
 
23
  }
24
 
25
  _XSUM_REMOVE_LINES = set(
 
69
 
70
  def _split_generators(self, dl_manager):
71
  """Returns SplitGenerators."""
72
+ dl_dir = dl_manager.download_and_extract(_URLs)
73
  challenge_sets = [
74
  ("challenge_train_sample", "train_xsum_RandomSample500.json"),
75
  ("challenge_validation_sample", "validation_xsum_RandomSample500.json"),