Datasets:
WorkInTheDark
commited on
Commit
·
3263f1b
1
Parent(s):
665cea6
Upload FairytaleQA.py
Browse files- FairytaleQA.py +2 -1
FairytaleQA.py
CHANGED
@@ -100,6 +100,7 @@ class FairytaleQA(datasets.GeneratorBasedBuilder):
|
|
100 |
"story_name": datasets.Value("string"),
|
101 |
"story_section": datasets.Value("string"),
|
102 |
"question": datasets.Value("string"),
|
|
|
103 |
"answer2": datasets.Value("string"),
|
104 |
"local-or-sum": datasets.Value("string"),
|
105 |
"attribute": datasets.Value("string"),
|
@@ -133,7 +134,7 @@ class FairytaleQA(datasets.GeneratorBasedBuilder):
|
|
133 |
reader_obj = csv.reader(file_obj)
|
134 |
key = 0
|
135 |
for row in reader_obj:
|
136 |
-
print(row)
|
137 |
story_name = row[0]
|
138 |
story_section = row[1]
|
139 |
question = row[2]
|
|
|
100 |
"story_name": datasets.Value("string"),
|
101 |
"story_section": datasets.Value("string"),
|
102 |
"question": datasets.Value("string"),
|
103 |
+
"answer1": datasets.Value("string"),
|
104 |
"answer2": datasets.Value("string"),
|
105 |
"local-or-sum": datasets.Value("string"),
|
106 |
"attribute": datasets.Value("string"),
|
|
|
134 |
reader_obj = csv.reader(file_obj)
|
135 |
key = 0
|
136 |
for row in reader_obj:
|
137 |
+
# print(row)
|
138 |
story_name = row[0]
|
139 |
story_section = row[1]
|
140 |
question = row[2]
|