Datasets:
LHF
/

Modalities:
Text
Languages:
Spanish
ArXiv:
Libraries:
Datasets
License:
jordiae commited on
Commit
c0c4f6f
1 Parent(s): 0249527

Update escorpius.py

Browse files
Files changed (1) hide show
  1. 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:#sorted(Path(files).rglob('*.jsonl*')):
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)