Update ldkp10k.py
Browse files- ldkp10k.py +1 -1
ldkp10k.py
CHANGED
@@ -108,7 +108,7 @@ class LDKP10k(datasets.GeneratorBasedBuilder):
|
|
108 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
109 |
def _generate_examples(self, filepaths, split):
|
110 |
for filepath in filepaths:
|
111 |
-
with open(
|
112 |
for key, row in enumerate(f):
|
113 |
data = json.loads(row)
|
114 |
yield key, {
|
|
|
108 |
# method parameters are unpacked from `gen_kwargs` as given in `_split_generators`
|
109 |
def _generate_examples(self, filepaths, split):
|
110 |
for filepath in filepaths:
|
111 |
+
with open(filepath, encoding="utf-8") as f:
|
112 |
for key, row in enumerate(f):
|
113 |
data = json.loads(row)
|
114 |
yield key, {
|