Update agieval.py
Browse files- agieval.py +42 -29
agieval.py
CHANGED
|
@@ -449,37 +449,50 @@ _LICENSE = (
|
|
| 449 |
"Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License"
|
| 450 |
)
|
| 451 |
HEAD= 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/'
|
| 452 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
_URLS = {
|
| 454 |
-
|
| 455 |
-
"test": HEAD+'
|
| 456 |
-
}
|
| 457 |
-
|
| 458 |
-
|
| 459 |
-
|
| 460 |
-
|
| 461 |
-
|
| 462 |
-
|
| 463 |
-
|
| 464 |
-
|
| 465 |
-
|
| 466 |
-
|
| 467 |
-
|
| 468 |
-
|
| 469 |
-
|
| 470 |
-
|
| 471 |
-
|
| 472 |
-
|
| 473 |
-
|
| 474 |
-
|
| 475 |
-
|
| 476 |
-
|
| 477 |
-
|
| 478 |
-
|
| 479 |
-
|
| 480 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 481 |
|
| 482 |
-
}
|
| 483 |
|
| 484 |
|
| 485 |
class AgiEval(datasets.GeneratorBasedBuilder):
|
|
|
|
| 449 |
"Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License"
|
| 450 |
)
|
| 451 |
HEAD= 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/'
|
| 452 |
+
english_qa_datasets = ["lsat-ar", "lsat-lr", "lsat-rc", "logiqa-en", "sat-math", "sat-en", "aqua-rat",
|
| 453 |
+
"sat-en-without-passage", "gaokao-english"]
|
| 454 |
+
chinese_qa_datasets = ["logiqa-zh", "jec-qa-kd", "jec-qa-ca", "gaokao-chinese", "gaokao-geography", "gaokao-history",
|
| 455 |
+
"gaokao-biology", "gaokao-chemistry", "gaokao-physics", "gaokao-mathqa"]
|
| 456 |
+
english_cloze_datasets = ["math"]
|
| 457 |
+
chinese_cloze_datasets = ["gaokao-mathcloze"]
|
| 458 |
+
all_lst = english_qa_datasets + chinese_qa_datasets + english_cloze_datasets + chinese_cloze_datasets
|
| 459 |
+
HEAD= 'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/v1/'
|
| 460 |
_URLS = {
|
| 461 |
+
e: {
|
| 462 |
+
"test": HEAD+e+'.jsonl',
|
| 463 |
+
} for e in all_lst
|
| 464 |
+
_URLS['few_shot'] ={'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'}
|
| 465 |
+
|
| 466 |
+
# _URLS = {
|
| 467 |
+
# "sat_en": {
|
| 468 |
+
# "test": HEAD+'sat-en.jsonl',
|
| 469 |
+
# },
|
| 470 |
+
# "sat_math": {
|
| 471 |
+
# "test": HEAD+'sat-math.jsonl'
|
| 472 |
+
# },
|
| 473 |
+
# "lsat_ar": {
|
| 474 |
+
# "test": HEAD+'lsat-ar.jsonl'
|
| 475 |
+
# },
|
| 476 |
+
# "lsat_lr": {
|
| 477 |
+
# "test": HEAD+'lsat-lr.jsonl'
|
| 478 |
+
# },
|
| 479 |
+
# "lsat_rc": {
|
| 480 |
+
# "test": HEAD+'lsat-rc.jsonl'
|
| 481 |
+
# },
|
| 482 |
+
# "logiqa": {
|
| 483 |
+
# "test": HEAD+'logiqa-en.jsonl'
|
| 484 |
+
# },
|
| 485 |
+
# "aqua_rat": {
|
| 486 |
+
# "test": HEAD+'aqua-rat.jsonl'
|
| 487 |
+
# },
|
| 488 |
+
# 'math_agieval': {
|
| 489 |
+
# "test": HEAD+'math.jsonl'
|
| 490 |
+
# },
|
| 491 |
+
# 'few_shot': {
|
| 492 |
+
# 'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
|
| 493 |
+
# }
|
| 494 |
|
| 495 |
+
# }
|
| 496 |
|
| 497 |
|
| 498 |
class AgiEval(datasets.GeneratorBasedBuilder):
|