Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
gem.py
CHANGED
@@ -922,7 +922,7 @@ class Gem(datasets.GeneratorBasedBuilder):
|
|
922 |
]
|
923 |
|
924 |
def _generate_examples(self, filepath, split, filepaths=None, lang=None):
|
925 |
-
"""
|
926 |
if self.config.name == "common_gen":
|
927 |
if split.startswith("challenge"):
|
928 |
exples = json.load(open(filepath, encoding="utf-8"))
|
|
|
922 |
]
|
923 |
|
924 |
def _generate_examples(self, filepath, split, filepaths=None, lang=None):
|
925 |
+
"""Yields examples."""
|
926 |
if self.config.name == "common_gen":
|
927 |
if split.startswith("challenge"):
|
928 |
exples = json.load(open(filepath, encoding="utf-8"))
|