Datasets:
Vaibhav Adlakha
commited on
Commit
·
af7254c
1
Parent(s):
9bad33a
minor
Browse files- TopiOCQA.py +12 -1
TopiOCQA.py
CHANGED
@@ -123,6 +123,17 @@ class Squad(datasets.GeneratorBasedBuilder):
|
|
123 |
with open(filepath, encoding="utf-8") as f:
|
124 |
for line in f:
|
125 |
data = json.loads(line)
|
126 |
-
yield key,
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
127 |
key += 1
|
128 |
|
|
|
123 |
with open(filepath, encoding="utf-8") as f:
|
124 |
for line in f:
|
125 |
data = json.loads(line)
|
126 |
+
yield key, {
|
127 |
+
"Conversation_no": data["Conversation_no"],
|
128 |
+
"Turn_no": data["Turn_no"],
|
129 |
+
"Question": data["Question"],
|
130 |
+
"Answer": data["Answer"],
|
131 |
+
"Topic": data["Topic"],
|
132 |
+
"Topic_section": data["Topic_section"],
|
133 |
+
"Rationale": data["Rationale"],
|
134 |
+
"is_nq": data["is_nq"],
|
135 |
+
"Context": data["Context"],
|
136 |
+
# "Additional_answers": data["Additional_answers"],
|
137 |
+
}
|
138 |
key += 1
|
139 |
|