Update agieval.py
Browse files- agieval.py +41 -41
agieval.py
CHANGED
|
@@ -62,53 +62,53 @@ t = ['sat-en', 'aqua-rat']
|
|
| 62 |
# }
|
| 63 |
|
| 64 |
|
| 65 |
-
# _URLS = {
|
| 66 |
-
# "sat_en": {
|
| 67 |
-
# "test": HEAD+'sat-en.jsonl',
|
| 68 |
-
# },
|
| 69 |
-
# "sat_math": {
|
| 70 |
-
# "test": HEAD+'sat-math.jsonl'
|
| 71 |
-
# },
|
| 72 |
-
# "lsat_ar": {
|
| 73 |
-
# "test": HEAD+'lsat-ar.jsonl'
|
| 74 |
-
# },
|
| 75 |
-
# "lsat_lr": {
|
| 76 |
-
# "test": HEAD+'lsat-lr.jsonl'
|
| 77 |
-
# },
|
| 78 |
-
# "lsat_rc": {
|
| 79 |
-
# "test": HEAD+'lsat-rc.jsonl'
|
| 80 |
-
# },
|
| 81 |
-
# "logiqa": {
|
| 82 |
-
# "test": HEAD+'logiqa-en.jsonl'
|
| 83 |
-
# },
|
| 84 |
-
# "aqua_rat": {
|
| 85 |
-
# "test": HEAD+'aqua-rat.jsonl'
|
| 86 |
-
# },
|
| 87 |
-
# 'math_agieval': {
|
| 88 |
-
# "test": HEAD+'math.jsonl'
|
| 89 |
-
# },
|
| 90 |
-
# 'few_shot': {
|
| 91 |
-
# 'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
| 92 |
-
# }
|
| 93 |
-
|
| 94 |
-
# }
|
| 95 |
_URLS = {
|
| 96 |
-
|
| 97 |
-
"test": HEAD+
|
| 98 |
-
}
|
| 99 |
-
|
| 100 |
-
|
| 101 |
-
|
| 102 |
-
|
| 103 |
-
|
| 104 |
-
|
| 105 |
-
|
| 106 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 107 |
'few_shot': {
|
| 108 |
'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
| 109 |
}
|
| 110 |
|
| 111 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
|
| 113 |
class AgiEval(datasets.GeneratorBasedBuilder):
|
| 114 |
"""TODO: Short description of my dataset."""
|
|
|
|
| 62 |
# }
|
| 63 |
|
| 64 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 65 |
_URLS = {
|
| 66 |
+
"sat-en": {
|
| 67 |
+
"test": HEAD+'sat-en.jsonl',
|
| 68 |
+
},
|
| 69 |
+
"sat_math": {
|
| 70 |
+
"test": HEAD+'sat-math.jsonl'
|
| 71 |
+
},
|
| 72 |
+
"lsat_ar": {
|
| 73 |
+
"test": HEAD+'lsat-ar.jsonl'
|
| 74 |
+
},
|
| 75 |
+
"lsat_lr": {
|
| 76 |
+
"test": HEAD+'lsat-lr.jsonl'
|
| 77 |
+
},
|
| 78 |
+
"lsat_rc": {
|
| 79 |
+
"test": HEAD+'lsat-rc.jsonl'
|
| 80 |
+
},
|
| 81 |
+
"logiqa": {
|
| 82 |
+
"test": HEAD+'logiqa-en.jsonl'
|
| 83 |
+
},
|
| 84 |
+
"aqua-rat": {
|
| 85 |
+
"test": HEAD+'aqua-rat.jsonl'
|
| 86 |
+
},
|
| 87 |
+
'math_agieval': {
|
| 88 |
+
"test": HEAD+'math.jsonl'
|
| 89 |
+
},
|
| 90 |
'few_shot': {
|
| 91 |
'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
| 92 |
}
|
| 93 |
|
| 94 |
}
|
| 95 |
+
# _URLS = {
|
| 96 |
+
# e: {
|
| 97 |
+
# "test": HEAD+e+'.jsonl',
|
| 98 |
+
# } for e in all_lst
|
| 99 |
+
|
| 100 |
+
# }
|
| 101 |
+
# _URLS['few_shot'] ={'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'}
|
| 102 |
+
# _URLS = {
|
| 103 |
+
# "sat-en": {
|
| 104 |
+
# "test": HEAD+'sat-en.jsonl',
|
| 105 |
+
# },
|
| 106 |
+
# "aqua-rat": {"test": HEAD+'aqua-rat.jsonl'},
|
| 107 |
+
# 'few_shot': {
|
| 108 |
+
# 'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
| 109 |
+
# }
|
| 110 |
+
|
| 111 |
+
# }
|
| 112 |
|
| 113 |
class AgiEval(datasets.GeneratorBasedBuilder):
|
| 114 |
"""TODO: Short description of my dataset."""
|