Update escorpius.py
Browse files- escorpius.py +2 -2
escorpius.py
CHANGED
@@ -127,7 +127,7 @@ class EsCorpius(datasets.GeneratorBasedBuilder):
|
|
127 |
'es_corpus.jsonl.bf',
|
128 |
'es_corpus.jsonl.bg'
|
129 |
]
|
130 |
-
urls_to_download = [urls_to_download[-1]] # testing
|
131 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
132 |
|
133 |
return [
|
@@ -140,7 +140,7 @@ class EsCorpius(datasets.GeneratorBasedBuilder):
|
|
140 |
"""Yield examples as (key, example) tuples."""
|
141 |
key = 0
|
142 |
|
143 |
-
for path in files
|
144 |
with open(path, "r", encoding="utf-8") as f:
|
145 |
for row in f:
|
146 |
data = json.loads(row)
|
|
|
127 |
'es_corpus.jsonl.bf',
|
128 |
'es_corpus.jsonl.bg'
|
129 |
]
|
130 |
+
# urls_to_download = [urls_to_download[-1]] # testing
|
131 |
downloaded_files = dl_manager.download_and_extract(urls_to_download)
|
132 |
|
133 |
return [
|
|
|
140 |
"""Yield examples as (key, example) tuples."""
|
141 |
key = 0
|
142 |
|
143 |
+
for path in files:
|
144 |
with open(path, "r", encoding="utf-8") as f:
|
145 |
for row in f:
|
146 |
data = json.loads(row)
|