Datasets:
Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- opus100.py +1 -1
opus100.py
CHANGED
@@ -255,7 +255,7 @@ class Opus100(datasets.GeneratorBasedBuilder):
|
|
255 |
return output
|
256 |
|
257 |
def _generate_examples(self, filepath, labelpath):
|
258 |
-
"""
|
259 |
src_tag, tgt_tag = self.config.language_pair.split("-")
|
260 |
with open(filepath, encoding="utf-8") as f1, open(labelpath, encoding="utf-8") as f2:
|
261 |
src = f1.read().split("\n")[:-1]
|
|
|
255 |
return output
|
256 |
|
257 |
def _generate_examples(self, filepath, labelpath):
|
258 |
+
"""Yields examples."""
|
259 |
src_tag, tgt_tag = self.config.language_pair.split("-")
|
260 |
with open(filepath, encoding="utf-8") as f1, open(labelpath, encoding="utf-8") as f2:
|
261 |
src = f1.read().split("\n")[:-1]
|