kimvu commited on
Commit
fedb8cb
·
1 Parent(s): cb6fe6b

Update agieval.py

Browse files
Files changed (1) hide show
  1. 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
- "sat_en": {
455
- "test": HEAD+'sat-en.jsonl',
456
- },
457
- "sat_math": {
458
- "test": HEAD+'sat-math.jsonl'
459
- },
460
- "lsat_ar": {
461
- "test": HEAD+'lsat-ar.jsonl'
462
- },
463
- "lsat_lr": {
464
- "test": HEAD+'lsat-lr.jsonl'
465
- },
466
- "lsat_rc": {
467
- "test": HEAD+'lsat-rc.jsonl'
468
- },
469
- "logiqa": {
470
- "test": HEAD+'logiqa-en.jsonl'
471
- },
472
- "aqua_rat": {
473
- "test": HEAD+'aqua-rat.jsonl'
474
- },
475
- 'math_agieval': {
476
- "test": HEAD+'math.jsonl'
477
- },
478
- 'few_shot': {
479
- 'few_shot':'https://raw.githubusercontent.com/microsoft/AGIEval/main/data/few_shot_prompts.csv'
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):