Update files from the datasets library (from 1.6.1)
Browse filesRelease notes: https://github.com/huggingface/datasets/releases/tag/1.6.1
- wiki_bio.py +1 -1
wiki_bio.py
CHANGED
@@ -158,7 +158,7 @@ class WikiBio(datasets.GeneratorBasedBuilder):
|
|
158 |
]
|
159 |
|
160 |
def _generate_examples(self, id_file, infobox_file, nb_lines_file, sentences_file, article_title_file):
|
161 |
-
"""
|
162 |
with open(id_file, "r", encoding="utf-8") as id_src, open(
|
163 |
infobox_file, "r", encoding="utf-8"
|
164 |
) as infobox_src, open(nb_lines_file, "r", encoding="utf-8") as nb_lines_src, open(
|
|
|
158 |
]
|
159 |
|
160 |
def _generate_examples(self, id_file, infobox_file, nb_lines_file, sentences_file, article_title_file):
|
161 |
+
"""Yields examples."""
|
162 |
with open(id_file, "r", encoding="utf-8") as id_src, open(
|
163 |
infobox_file, "r", encoding="utf-8"
|
164 |
) as infobox_src, open(nb_lines_file, "r", encoding="utf-8") as nb_lines_src, open(
|