Datasets:
Update csatqa.py
Browse files
csatqa.py
CHANGED
@@ -43,7 +43,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
|
|
43 |
"option#5": datasets.Value("string"),
|
44 |
"gold": datasets.Value("int8"),
|
45 |
"category": datasets.Value("string"),
|
46 |
-
|
47 |
}
|
48 |
)
|
49 |
return datasets.DatasetInfo(
|
@@ -81,7 +81,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
|
|
81 |
"option#5": data["option#5"],
|
82 |
"gold": data["gold"],
|
83 |
"category":"N/A",
|
84 |
-
|
85 |
})
|
86 |
|
87 |
elif data["Category"] == self.config.name:
|
@@ -95,7 +95,7 @@ class CSATQA(datasets.GeneratorBasedBuilder):
|
|
95 |
"option#5": data["option#5"],
|
96 |
"gold": data["gold"],
|
97 |
"category": data["Category"],
|
98 |
-
|
99 |
})
|
100 |
|
101 |
for idx, dat in enumerate(buffer):
|
|
|
43 |
"option#5": datasets.Value("string"),
|
44 |
"gold": datasets.Value("int8"),
|
45 |
"category": datasets.Value("string"),
|
46 |
+
"human_performance": datasets.Value("float32"),
|
47 |
}
|
48 |
)
|
49 |
return datasets.DatasetInfo(
|
|
|
81 |
"option#5": data["option#5"],
|
82 |
"gold": data["gold"],
|
83 |
"category":"N/A",
|
84 |
+
"human_performance":0.0
|
85 |
})
|
86 |
|
87 |
elif data["Category"] == self.config.name:
|
|
|
95 |
"option#5": data["option#5"],
|
96 |
"gold": data["gold"],
|
97 |
"category": data["Category"],
|
98 |
+
"human_performance": data["Human_Peformance"]
|
99 |
})
|
100 |
|
101 |
for idx, dat in enumerate(buffer):
|