Absolute path
Browse files- squad_kor_v2.py +1 -1
squad_kor_v2.py
CHANGED
@@ -117,7 +117,7 @@ class SquadKorV2(datasets.GeneratorBasedBuilder):
|
|
117 |
for d in dirs:
|
118 |
filepaths = sorted(os.scandir(d), key=lambda x: x.name)
|
119 |
for filepath in filepaths:
|
120 |
-
with open(filepath, encoding="utf-8") as f:
|
121 |
squad = json.load(f)
|
122 |
for example in squad["data"]:
|
123 |
title = example.get("title", "").strip()
|
|
|
117 |
for d in dirs:
|
118 |
filepaths = sorted(os.scandir(d), key=lambda x: x.name)
|
119 |
for filepath in filepaths:
|
120 |
+
with open(f"{d}/{filepath.name}", encoding="utf-8") as f:
|
121 |
squad = json.load(f)
|
122 |
for example in squad["data"]:
|
123 |
title = example.get("title", "").strip()
|