Commit
·
1ded71e
1
Parent(s):
97571a1
changes to download ds in streaming mode
Browse files- malayalam_wiki.py +1 -0
malayalam_wiki.py
CHANGED
@@ -97,6 +97,7 @@ class MalayalamWiki(datasets.GeneratorBasedBuilder):
|
|
97 |
def _generate_examples(self, filepaths):
|
98 |
"""This function returns the examples in the raw (text) form by iterating on all the files."""
|
99 |
for file_id, file in enumerate(filepaths):
|
|
|
100 |
with open(file, encoding="utf-8") as f:
|
101 |
for row_id, row in enumerate(f):
|
102 |
yield f"{file_id}_{row_id}", {"text": self.remove_special_characters(row).strip()}
|
|
|
97 |
def _generate_examples(self, filepaths):
|
98 |
"""This function returns the examples in the raw (text) form by iterating on all the files."""
|
99 |
for file_id, file in enumerate(filepaths):
|
100 |
+
logger.info("generating examples from = %s", file)
|
101 |
with open(file, encoding="utf-8") as f:
|
102 |
for row_id, row in enumerate(f):
|
103 |
yield f"{file_id}_{row_id}", {"text": self.remove_special_characters(row).strip()}
|