Merge branch 'main' of https://huggingface.co/datasets/flax-community/german_common_crawl into main
Browse files- german_common_crawl.py +1 -1
german_common_crawl.py
CHANGED
@@ -222,7 +222,7 @@ class GermanCommonCrawl(datasets.GeneratorBasedBuilder):
|
|
222 |
def _generate_examples(self, data_files):
|
223 |
"""This function returns the examples in the raw (text) form by iterating on all the files."""
|
224 |
for filepath in data_files:
|
225 |
-
with open(filepath, encoding="utf-8") as f:
|
226 |
# with gzip.open(filepath, "rt", encoding="utf-8") as f:
|
227 |
for id_, line in enumerate(f):
|
228 |
item = literal_eval(line)
|
|
|
222 |
def _generate_examples(self, data_files):
|
223 |
"""This function returns the examples in the raw (text) form by iterating on all the files."""
|
224 |
for filepath in data_files:
|
225 |
+
with open(filepath, "rt", encoding="utf-8") as f:
|
226 |
# with gzip.open(filepath, "rt", encoding="utf-8") as f:
|
227 |
for id_, line in enumerate(f):
|
228 |
item = literal_eval(line)
|