Datasets:
Angel Uriot
commited on
Commit
•
2fc2a93
1
Parent(s):
27eebc4
Fix error with French langage
Browse filesGot `UnicodeDecodeError: 'charmap' codec can't decode byte 0x9d in position 3265: character maps to <undefined>` when downloading the French split.
mqa.py
CHANGED
@@ -139,7 +139,7 @@ class MQA(datasets.GeneratorBasedBuilder):
|
|
139 |
return e[key]
|
140 |
|
141 |
for filename in filenames:
|
142 |
-
with open(filename, "r") as f:
|
143 |
domain = []
|
144 |
previous_domain = ''
|
145 |
for line in f:
|
|
|
139 |
return e[key]
|
140 |
|
141 |
for filename in filenames:
|
142 |
+
with open(filename, "r", encoding="utf-8") as f:
|
143 |
domain = []
|
144 |
previous_domain = ''
|
145 |
for line in f:
|