Datasets:

Modalities:
Text
ArXiv:
Libraries:
Datasets
Maurice Weber commited on
Commit
eb143a1
1 Parent(s): 7f1cb5c
Files changed (1) hide show
  1. RedPajama-Data-V2.py +1 -1
RedPajama-Data-V2.py CHANGED
@@ -262,7 +262,7 @@ class RedPajamaV2(datasets.GeneratorBasedBuilder):
262
 
263
  missing_files = {}
264
  for component, missing_file in missing_files_paths.items():
265
- with open(missing_file) as f:
266
  missing_files[component] = set(line.strip() for line in f)
267
 
268
  # build list of urls to fetch
 
262
 
263
  missing_files = {}
264
  for component, missing_file in missing_files_paths.items():
265
+ with open(missing_file, "r", encoding="utf-8") as f:
266
  missing_files[component] = set(line.strip() for line in f)
267
 
268
  # build list of urls to fetch