Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
pib.py
CHANGED
@@ -145,7 +145,7 @@ class Pib(datasets.GeneratorBasedBuilder):
|
|
145 |
]
|
146 |
|
147 |
def _generate_examples(self, filepath, labelpath):
|
148 |
-
"""
|
149 |
with open(filepath, encoding="utf-8") as f1, open(labelpath, encoding="utf-8") as f2:
|
150 |
src = f1.read().split("\n")[:-1]
|
151 |
tgt = f2.read().split("\n")[:-1]
|
|
|
145 |
]
|
146 |
|
147 |
def _generate_examples(self, filepath, labelpath):
|
148 |
+
"""Yields examples."""
|
149 |
with open(filepath, encoding="utf-8") as f1, open(labelpath, encoding="utf-8") as f2:
|
150 |
src = f1.read().split("\n")[:-1]
|
151 |
tgt = f2.read().split("\n")[:-1]
|