Update files from the datasets library (from 1.16.0)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.16.0
- 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!"
|
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."""
|