baber commited on
Commit
1ea8b02
1 Parent(s): 6f26501

Update agieval.py

Browse files
Files changed (1) hide show
  1. agieval.py +33 -39
agieval.py CHANGED
@@ -1,34 +1,3 @@
1
- # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
2
- #
3
- # Licensed under the Apache License, Version 2.0 (the "License");
4
- # you may not use this file except in compliance with the License.
5
- # You may obtain a copy of the License at
6
- #
7
- # http://www.apache.org/licenses/LICENSE-2.0
8
- #
9
- # Unless required by applicable law or agreed to in writing, software
10
- # distributed under the License is distributed on an "AS IS" BASIS,
11
- # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
- # See the License for the specific language governing permissions and
13
- # limitations under the License.
14
- """LogiQA dataset."""
15
-
16
- import datasets
17
- import json
18
- import ast
19
-
20
- _CITATION = """\
21
- @ARTICLE{10174688,
22
- author={Liu, Hanmeng and Liu, Jian and Cui, Leyang and Teng, Zhiyang and Duan, Nan and Zhou, Ming and Zhang, Yue},
23
- journal={IEEE/ACM Transactions on Audio, Speech, and Language Processing},
24
- title={LogiQA 2.0 — An Improved Dataset for Logical Reasoning in Natural Language Understanding},
25
- year={2023},
26
- volume={},
27
- number={},
28
- pages={1-16},
29
- doi={10.1109/TASLP.2023.3293046}}
30
- """
31
-
32
  _DESCRIPTION = """\
33
  The dataset is an amendment and re-annotation of LogiQA in 2020, a large-scale logical reasoning reading comprehension dataset adapted from the Chinese Civil Service Examination. We increase the data size, refine the texts with manual translation by professionals, and improve the quality by removing items with distinctive cultural features like Chinese idioms. Furthermore, we conduct a fine-grained annotation on the dataset and turn it into a two-way natural language inference (NLI) task, resulting in 35k premise-hypothesis pairs with gold labels, making it the first large-scale NLI dataset for complex logical reasoning
34
  """
@@ -86,22 +55,47 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
86
  # data = datasets.load_dataset('my_dataset', 'second_domain')
87
  BUILDER_CONFIGS = [
88
  datasets.BuilderConfig(
89
- name="logiqa2",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
90
  version=VERSION,
91
- description="The LogiQA multiple answer dataset translated in English from Chinese.",
92
  ),
93
  datasets.BuilderConfig(
94
- name="logiqa2_zh",
95
  version=VERSION,
96
- description="The original LogiQA multiple answer dataset in Chinese.",
97
  ),
98
  datasets.BuilderConfig(
99
- name="logiqa2_nli",
100
  version=VERSION,
101
- description="The NLI part of LogiQA2.0 dataset",
 
 
 
 
 
102
  ),
103
  ]
104
- DEFAULT_CONFIG_NAME = "logiqa2"
105
 
106
  def _info(self):
107
 
@@ -205,4 +199,4 @@ class LogiQA2(datasets.GeneratorBasedBuilder):
205
  "question": data["question"],
206
  "options": data["options"],
207
  "label": data["label"],
208
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  _DESCRIPTION = """\
2
  The dataset is an amendment and re-annotation of LogiQA in 2020, a large-scale logical reasoning reading comprehension dataset adapted from the Chinese Civil Service Examination. We increase the data size, refine the texts with manual translation by professionals, and improve the quality by removing items with distinctive cultural features like Chinese idioms. Furthermore, we conduct a fine-grained annotation on the dataset and turn it into a two-way natural language inference (NLI) task, resulting in 35k premise-hypothesis pairs with gold labels, making it the first large-scale NLI dataset for complex logical reasoning
3
  """
 
55
  # data = datasets.load_dataset('my_dataset', 'second_domain')
56
  BUILDER_CONFIGS = [
57
  datasets.BuilderConfig(
58
+ name="aqua_rat",
59
+ version=VERSION,
60
+ description="",
61
+ ),
62
+ datasets.BuilderConfig(
63
+ name="sat_en",
64
+ version=VERSION,
65
+ description="",
66
+ ),
67
+ datasets.BuilderConfig(
68
+ name="sat_math",
69
+ version=VERSION,
70
+ description="",
71
+ ),
72
+ datasets.BuilderConfig(
73
+ name="lsat_ar",
74
+ version=VERSION,
75
+ description="",
76
+ ),
77
+ datasets.BuilderConfig(
78
+ name="lsat_lr",
79
  version=VERSION,
80
+ description="",
81
  ),
82
  datasets.BuilderConfig(
83
+ name="lsat_rc",
84
  version=VERSION,
85
+ description="",
86
  ),
87
  datasets.BuilderConfig(
88
+ name="logiqa",
89
  version=VERSION,
90
+ description="",
91
+ ),
92
+ datasets.BuilderConfig(
93
+ name="math_agieval",
94
+ version=VERSION,
95
+ description="",
96
  ),
97
  ]
98
+ DEFAULT_CONFIG_NAME = "aqua_rat"
99
 
100
  def _info(self):
101
 
 
199
  "question": data["question"],
200
  "options": data["options"],
201
  "label": data["label"],
202
+ }