Datasets:
cordercorder
commited on
Commit
·
3f8dfea
1
Parent(s):
8667933
add Load the data
Browse files
README.md
CHANGED
@@ -16,6 +16,33 @@ arxiv:
|
|
16 |
M3KE, or Massive Multi-Level Multi-Subject Knowledge Evaluation, is a benchmark developed to assess the knowledge acquired by large Chinese language models by evaluating their multitask accuracy in both zero- and few-shot settings. The benchmark comprises 20,477 questions spanning 71 tasks. For further information about M3KE, please consult our [paper](https://arxiv.org/abs/2305.10263) or visit our [GitHub](https://github.com/tjunlp-lab/M3KE) page.
|
17 |
|
18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
```
|
20 |
@misc{liu2023m3ke,
|
21 |
title={M3KE: A Massive Multi-Level Multi-Subject Knowledge Evaluation Benchmark for Chinese Large Language Models},
|
|
|
16 |
M3KE, or Massive Multi-Level Multi-Subject Knowledge Evaluation, is a benchmark developed to assess the knowledge acquired by large Chinese language models by evaluating their multitask accuracy in both zero- and few-shot settings. The benchmark comprises 20,477 questions spanning 71 tasks. For further information about M3KE, please consult our [paper](https://arxiv.org/abs/2305.10263) or visit our [GitHub](https://github.com/tjunlp-lab/M3KE) page.
|
17 |
|
18 |
|
19 |
+
## Load the data
|
20 |
+
```python
|
21 |
+
from datasets import load_dataset
|
22 |
+
|
23 |
+
ds = load_dataset("TJUNLP/M3KE", "Computer Programming Language-Natural Sciences-Other")
|
24 |
+
print(ds)
|
25 |
+
"""
|
26 |
+
DatasetDict({
|
27 |
+
test: Dataset({
|
28 |
+
features: ['id', 'question', 'A', 'B', 'C', 'D', 'answer'],
|
29 |
+
num_rows: 236
|
30 |
+
})
|
31 |
+
dev: Dataset({
|
32 |
+
features: ['id', 'question', 'A', 'B', 'C', 'D', 'answer'],
|
33 |
+
num_rows: 5
|
34 |
+
})
|
35 |
+
})
|
36 |
+
"""
|
37 |
+
|
38 |
+
print(ds["test"][0])
|
39 |
+
"""
|
40 |
+
{'id': 0, 'question': '下面判断正确的是?', 'A': 'char str[10]={"china"}; 等价于 char str[10];str[]="china";', 'B': 'char *s="china"; 等价于 char *s;s="china"; ', 'C': 'char *a="china"; 等价于 char *a;*a="china";', 'D': 'char c[6]="china",d[6]="china"; 等 价 于 char c[6]=d[6]="china"; ', 'answer': ''}
|
41 |
+
"""
|
42 |
+
|
43 |
+
```
|
44 |
+
|
45 |
+
|
46 |
```
|
47 |
@misc{liu2023m3ke,
|
48 |
title={M3KE: A Massive Multi-Level Multi-Subject Knowledge Evaluation Benchmark for Chinese Large Language Models},
|