Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
mkb.py
CHANGED
|
@@ -136,7 +136,7 @@ class Mkb(datasets.GeneratorBasedBuilder):
|
|
| 136 |
]
|
| 137 |
|
| 138 |
def _generate_examples(self, filepath, labelpath):
|
| 139 |
-
"""
|
| 140 |
src_tag, tgt_tag = self.config.language_pair.split("-")
|
| 141 |
with open(filepath, encoding="utf-8") as f1, open(labelpath, encoding="utf-8") as f2:
|
| 142 |
src = f1.read().split("\n")[:-1]
|
|
|
|
| 136 |
]
|
| 137 |
|
| 138 |
def _generate_examples(self, filepath, labelpath):
|
| 139 |
+
"""Yields examples."""
|
| 140 |
src_tag, tgt_tag = self.config.language_pair.split("-")
|
| 141 |
with open(filepath, encoding="utf-8") as f1, open(labelpath, encoding="utf-8") as f2:
|
| 142 |
src = f1.read().split("\n")[:-1]
|