AsakusaRinne
commited on
Commit
•
9aaef7b
1
Parent(s):
129483c
Update gaokao_bench.py
Browse files- gaokao_bench.py +5 -24
gaokao_bench.py
CHANGED
@@ -1,36 +1,17 @@
|
|
1 |
-
|
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 |
import os
|
15 |
|
16 |
import datasets
|
17 |
import pandas as pd
|
18 |
|
19 |
|
20 |
-
_CITATION = """
|
21 |
-
@article{huang2023ceval,
|
22 |
-
title={C-Eval: A Multi-Level Multi-Discipline Chinese Evaluation Suite for Foundation Models},
|
23 |
-
author={Huang, Yuzhen and Bai, Yuzhuo and Zhu, Zhihao and Zhang, Junlei and Zhang, Jinghan and Su, Tangjun and Liu, Junteng and Lv, Chuancheng and Zhang, Yikai and Lei, Jiayi and Fu, Yao and Sun, Maosong and He, Junxian},
|
24 |
-
journal={arXiv preprint arXiv:2305.08322},
|
25 |
-
year={2023}
|
26 |
-
}
|
27 |
"""
|
28 |
|
29 |
-
_DESCRIPTION = """
|
30 |
-
C-Eval is a comprehensive Chinese evaluation suite for foundation models. It consists of 13948 multi-choice questions spanning 52 diverse disciplines and four difficulty levels.
|
31 |
"""
|
32 |
|
33 |
-
_HOMEPAGE = "https://
|
34 |
|
35 |
_LICENSE = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License"
|
36 |
|
@@ -108,7 +89,7 @@ class GaokaoBench(datasets.GeneratorBasedBuilder):
|
|
108 |
# },
|
109 |
# ),
|
110 |
datasets.SplitGenerator(
|
111 |
-
name=datasets.Split
|
112 |
gen_kwargs={
|
113 |
"filepath": os.path.join(
|
114 |
data_dir, 'gaokao_bench/Multiple-choice_Questions', f'{task_name}.csv'
|
|
|
1 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
import os
|
3 |
|
4 |
import datasets
|
5 |
import pandas as pd
|
6 |
|
7 |
|
8 |
+
_CITATION = """
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
"""
|
10 |
|
11 |
+
_DESCRIPTION = """
|
|
|
12 |
"""
|
13 |
|
14 |
+
_HOMEPAGE = "https://github.com/OpenLMLab/GAOKAO-Bench"
|
15 |
|
16 |
_LICENSE = "Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License"
|
17 |
|
|
|
89 |
# },
|
90 |
# ),
|
91 |
datasets.SplitGenerator(
|
92 |
+
name=datasets.Split("dev"),
|
93 |
gen_kwargs={
|
94 |
"filepath": os.path.join(
|
95 |
data_dir, 'gaokao_bench/Multiple-choice_Questions', f'{task_name}.csv'
|