Datasets:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
asset.py
CHANGED
@@ -140,7 +140,7 @@ class Asset(datasets.GeneratorBasedBuilder):
|
|
140 |
]
|
141 |
|
142 |
def _generate_examples(self, filepaths, split):
|
143 |
-
"""
|
144 |
if self.config.name == "simplification":
|
145 |
files = [open(filepaths[f"asset.{split}.orig"], encoding="utf-8")] + [
|
146 |
open(filepaths[f"asset.{split}.simp.{i}"], encoding="utf-8") for i in range(10)
|
|
|
140 |
]
|
141 |
|
142 |
def _generate_examples(self, filepaths, split):
|
143 |
+
"""Yields examples."""
|
144 |
if self.config.name == "simplification":
|
145 |
files = [open(filepaths[f"asset.{split}.orig"], encoding="utf-8")] + [
|
146 |
open(filepaths[f"asset.{split}.simp.{i}"], encoding="utf-8") for i in range(10)
|