Datasets:
boragokbakan
commited on
Commit
·
e4f6042
1
Parent(s):
6764963
generate fix
Browse files- entity_disambiguation.py +4 -0
entity_disambiguation.py
CHANGED
@@ -93,4 +93,8 @@ class EntityDisambiguation(datasets.GeneratorBasedBuilder):
|
|
93 |
with open(filepath, encoding="utf-8") as f:
|
94 |
for line in f:
|
95 |
row = json.loads(line)
|
|
|
|
|
|
|
|
|
96 |
yield row["id"], row
|
|
|
93 |
with open(filepath, encoding="utf-8") as f:
|
94 |
for line in f:
|
95 |
row = json.loads(line)
|
96 |
+
row["answer"] = row["output"][0]["answer"]
|
97 |
+
|
98 |
+
del row["output"]
|
99 |
+
|
100 |
yield row["id"], row
|