davidlms commited on
Commit
7c6ea44
1 Parent(s): 062b3c4

Update letras-carnaval-cadiz.py

Browse files
Files changed (1) hide show
  1. letras-carnaval-cadiz.py +2 -2
letras-carnaval-cadiz.py CHANGED
@@ -86,9 +86,9 @@ class CadizCarnivalDataset(GeneratorBasedBuilder):
86
  return [SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["midaccurate"]})]
87
  else: # Default is "all"
88
  # Load both JSON files and combine them
89
- with open(downloaded_files["accurate"], 'r') as f:
90
  data_accurate = json.load(f)
91
- with open(downloaded_files["midaccurate"], 'r') as f:
92
  data_midaccurate = json.load(f)
93
  data_all = data_accurate + data_midaccurate
94
 
 
86
  return [SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": downloaded_files["midaccurate"]})]
87
  else: # Default is "all"
88
  # Load both JSON files and combine them
89
+ with open(downloaded_files["accurate"], 'r', encoding="utf-8") as f:
90
  data_accurate = json.load(f)
91
+ with open(downloaded_files["midaccurate"], 'r', encoding="utf-8") as f:
92
  data_midaccurate = json.load(f)
93
  data_all = data_accurate + data_midaccurate
94