Update letras-carnaval-cadiz.py
Browse files- 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 |
|