Update agieval.py
Browse files- agieval.py +64 -38
agieval.py
CHANGED
@@ -50,46 +50,72 @@ chinese_cloze_datasets = ["gaokao-mathcloze"]
|
|
50 |
all_lst = english_qa_datasets + chinese_qa_datasets + english_cloze_datasets + chinese_cloze_datasets
|
51 |
t = ['sat-en', 'aqua-rat']
|
52 |
|
53 |
-
_URLS = {
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
"logiqa": {
|
76 |
-
"test": HEAD+'logiqa-en.jsonl'
|
77 |
-
},
|
78 |
-
"aqua_rat": {
|
79 |
-
"test": HEAD+'aqua-rat.jsonl'
|
80 |
-
},
|
81 |
-
'math': {
|
82 |
-
"test": HEAD+'math.jsonl'
|
83 |
-
},
|
84 |
-
'few_shot': {
|
85 |
'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
86 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
87 |
|
88 |
-
}
|
89 |
-
_URLS = {
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
# _URLS = {
|
94 |
# e: {
|
95 |
# "test": HEAD+e+'.jsonl',
|
|
|
50 |
all_lst = english_qa_datasets + chinese_qa_datasets + english_cloze_datasets + chinese_cloze_datasets
|
51 |
t = ['sat-en', 'aqua-rat']
|
52 |
|
53 |
+
_URLS = {'lsat-ar': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/lsat-ar.jsonl'},
|
54 |
+
'lsat-lr': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/lsat-lr.jsonl'},
|
55 |
+
'lsat-rc': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/lsat-rc.jsonl'},
|
56 |
+
'logiqa-en': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/logiqa-en.jsonl'},
|
57 |
+
'sat-math': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/sat-math.jsonl'},
|
58 |
+
'sat-en': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/sat-en.jsonl'},
|
59 |
+
'aqua-rat': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/aqua-rat.jsonl'},
|
60 |
+
'sat-en-without-passage': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/sat-en-without-passage.jsonl'},
|
61 |
+
'gaokao-english': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-english.jsonl'},
|
62 |
+
'logiqa-zh': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/logiqa-zh.jsonl'},
|
63 |
+
'jec-qa-kd': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/jec-qa-kd.jsonl'},
|
64 |
+
'jec-qa-ca': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/jec-qa-ca.jsonl'},
|
65 |
+
'gaokao-chinese': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-chinese.jsonl'},
|
66 |
+
'gaokao-geography': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-geography.jsonl'},
|
67 |
+
'gaokao-history': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-history.jsonl'},
|
68 |
+
'gaokao-biology': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-biology.jsonl'},
|
69 |
+
'gaokao-chemistry': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-chemistry.jsonl'},
|
70 |
+
'gaokao-physics': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-physics.jsonl'},
|
71 |
+
'gaokao-mathqa': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-mathqa.jsonl'},
|
72 |
+
'math': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/math.jsonl'},
|
73 |
+
'gaokao-mathcloze': {'test': 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/gaokao-mathcloze.jsonl'}
|
74 |
+
'few_shot': {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
76 |
+
}}
|
77 |
+
|
78 |
+
|
79 |
+
# {
|
80 |
+
# "sat-en-without-passage": {
|
81 |
+
# "test": HEAD+'sat-en-without-passage.jsonl',
|
82 |
+
# },
|
83 |
+
# "logiqa-en": {
|
84 |
+
# "test": HEAD+'logiqa-en.jsonl',
|
85 |
+
# },
|
86 |
+
# "sat_en": {
|
87 |
+
# "test": HEAD+'sat-en.jsonl',
|
88 |
+
# },
|
89 |
+
# "sat_math": {
|
90 |
+
# "test": HEAD+'sat-math.jsonl'
|
91 |
+
# },
|
92 |
+
# "lsat_ar": {
|
93 |
+
# "test": HEAD+'lsat-ar.jsonl'
|
94 |
+
# },
|
95 |
+
# "lsat_lr": {
|
96 |
+
# "test": HEAD+'lsat-lr.jsonl'
|
97 |
+
# },
|
98 |
+
# "lsat_rc": {
|
99 |
+
# "test": HEAD+'lsat-rc.jsonl'
|
100 |
+
# },
|
101 |
+
# "logiqa": {
|
102 |
+
# "test": HEAD+'logiqa-en.jsonl'
|
103 |
+
# },
|
104 |
+
# "aqua_rat": {
|
105 |
+
# "test": HEAD+'aqua-rat.jsonl'
|
106 |
+
# },
|
107 |
+
# 'math': {
|
108 |
+
# "test": HEAD+'math.jsonl'
|
109 |
+
# },
|
110 |
+
# 'few_shot': {
|
111 |
+
# 'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
112 |
+
# }
|
113 |
|
114 |
+
# }
|
115 |
+
# _URLS = {
|
116 |
+
# e: {
|
117 |
+
# "test": "".join([HEAD,str(e),'.jsonl']),
|
118 |
+
# } for e in t}
|
119 |
# _URLS = {
|
120 |
# e: {
|
121 |
# "test": HEAD+e+'.jsonl',
|