File size: 1,916 Bytes
6e741e6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
9e66500
6e741e6
9e66500
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
license: mit
task_categories:
- text-generation
language:
- ja
- en
tags:
- code

configs:
  - config_name: ja
    data_files:
      - split: test
        path:
          - sakuraeval/ja.parquet
  - config_name: en
    data_files:
      - split: test
        path:
          - sakuraeval/en.parquet
---
# SakuraEval

## Dataset Description
SakuraEval is a Japan-specific code generation benchmark dataset. 
It is designed independently and does not rely on translation from English benchmarks such as HumanEval or JHumanEval.

## Dataset Structure
```python
from datasets import load_dataset
load_dataset("kogi-jwu/sakuraeval", "ja")
DatasetDict({
    test: Dataset({
        features: ['task_id', 'category', 'prompt', 'canonical_solution', 'test', 'entry_point'],
        num_rows: 164
    })
})
```

## Data Fields
- task_id: Identifier for the data sample.
- category: Task category.  
- prompt: Input for the model, including the function header and docstring that describes the task.
- canonical_solution: Solution to the problem presented in the prompt.
- test: Function(s) to test the generated code for correctness.
- entry_point: Entry point function to begin testing.

### Category Breakdown
| Category                         | Number of Tasks |
|----------------------------------|-----------------|
| 文化(Culture)                   | 34              |
| 風習(Customs)                   | 27              |
| 日本地理(Japanese Geography)     | 10              |
| 公民・法律(Law and Civics)       | 11              |
| 数学・科学(Math and Science)     | 21              |
| 単位変換(Unit Conversion)        | 11              |
| 日本語処理(Japanese Language)     | 43              |
| その他(Other)                    | 7               |


## Languages
The dataset contains coding problems in 2 natural languages: English and Japanese.