system HF staff commited on
Commit
1b45e42
1 Parent(s): 96647f9

Update files from the datasets library (from 1.16.0)

Browse files

Release notes: https://github.com/huggingface/datasets/releases/tag/1.16.0

Files changed (1) hide show
  1. squadshifts.py +1 -1
squadshifts.py CHANGED
@@ -140,7 +140,7 @@ class SquadShifts(datasets.GeneratorBasedBuilder):
140
  datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["amazon"]}),
141
  ]
142
  else:
143
- raise ValueError("SQuADShifts dataset name {} not found!".format(self.config.name))
144
 
145
  def _generate_examples(self, filepath):
146
  """This function returns the examples in the raw (text) form."""
 
140
  datasets.SplitGenerator(name=datasets.Split.TEST, gen_kwargs={"filepath": downloaded_files["amazon"]}),
141
  ]
142
  else:
143
+ raise ValueError(f"SQuADShifts dataset name {self.config.name} not found!")
144
 
145
  def _generate_examples(self, filepath):
146
  """This function returns the examples in the raw (text) form."""