Datasets:
Update ThaiCulturaX_loading_script.py
Browse files
ThaiCulturaX_loading_script.py
CHANGED
@@ -72,7 +72,7 @@ class ThaiCulturaX(datasets.GeneratorBasedBuilder):
|
|
72 |
id_ = 0
|
73 |
for filepath in filepaths:
|
74 |
logger.info("generating examples from = %s", filepath)
|
75 |
-
with open(
|
76 |
for line in f:
|
77 |
if line:
|
78 |
example = json.loads(line)
|
|
|
72 |
id_ = 0
|
73 |
for filepath in filepaths:
|
74 |
logger.info("generating examples from = %s", filepath)
|
75 |
+
with open(filepath, "r",encoding="utf-8-sig") as f:
|
76 |
for line in f:
|
77 |
if line:
|
78 |
example = json.loads(line)
|