File size: 5,194 Bytes
47e9ca5
2279d02
47e9ca5
2279d02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47e9ca5
2279d02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
---
pretty_name: PyMETA
license: cc-by-nc-4.0
language:
- en
- zh
annotations_creators:
- expert-generated
- machine-generated
language_creators:
- found
multilinguality:
- monolingual
size_categories:
- 10K<n<100K
source_datasets:
- original
task_categories:
- text-classification
task_ids:
- multi-class-classification
- multi-label-classification
tags:
- code
- python
- code-error-classification
- education
- online-judge
configs:
- config_name: default
  data_files:
  - split: train
    path: train.csv
  - split: validation
    path: dev.csv
  - split: test
    path: test.csv
---

# Dataset Card for PyMETA

## Dataset Description

- **Repository (code, prompts, scripts):** https://github.com/Circle-Cat/pymeta
- **Paper:** *PyMETA: A Benchmark Dataset for Hierarchical Student Code Error Classification with Python-Interpreter-Based Labels*
- **Point of Contact:** CircleCat (`{cyli, ztang}@circlecat.org`)

### Dataset Summary

**PyMETA** (**Py**thon **M**ulti-**E**rror **TA**xonomy) is a large-scale benchmark for
**hierarchical student code error classification**. It contains **48,646** real Python
code submissions from **579** users across **155** distinct problems (22 problem types),
collected from the Circle Cat online learning platform. Every submission has a
**single-error label** derived from Online Judge execution output, organized under a
**three-level hierarchical taxonomy** (binary → three-class → 14 fine-grained error types
grounded in Python's official exception hierarchy).

An **expert-annotated multi-error diagnostic subset** of 97 samples (13 error types) is
provided in the [GitHub repository](https://github.com/Circle-Cat/pymeta) for studying
co-occurring errors.

### Supported Tasks

- **Task A — Binary classification:** `No Error` vs. `Error`.
- **Task B — Three-class classification:** `No Error` / `Logic Error` / `Explicit Error`.
- **Task C — Multi-class classification:** 14 fine-grained error types.
- **Multi-error classification** (on the 97-sample subset): identify *all* concurrent
  errors in a submission.

### Languages

Student code is **Python**. Problem descriptions are primarily in **Chinese** (`zh`); the
evaluation prompts are in **English** (`en`).

## How to use

```python
from datasets import load_dataset

ds = load_dataset("CircleCat/pymeta")
print(ds["train"][0])
```

## Dataset Structure

### Data Fields

Each sample has 9 features plus a single-error label:

| Field | Type | Description |
|-------|------|-------------|
| `userId` | string | Anonymized numeric identifier of the student |
| `name` | string | Problem/lesson name (problem type) |
| `questionId` | string | Unique identifier of the problem |
| `question` | string | Problem description |
| `exceptedAnswer` | string | A correct reference code solution |
| `attemptId` | string | Attempt number |
| `studentAnswer` | string | The student's submitted Python code |
| `testOutcome` | string | Online Judge error message / execution output |
| `attemptstepid` | string | Step identifier for the attempt |
| `error_category` | string | Single-error label (see taxonomy below) |

### Taxonomy (label IDs)

`0` No Error · `1` Logic Error · `2` Syntax Error · `3` Name Error · `4` Type Error ·
`5` Indentation Error · `6` Unbound Local Error · `7` Key Error · `8` Index Error ·
`9` EOF Error · `10` Recursion Error · `11` Value Error · `12` Tab Error ·
`13` Other Errors. Full definitions and per-class counts are in the
[GitHub `TAXONOMY.md`](https://github.com/Circle-Cat/pymeta/blob/main/TAXONOMY.md).

### Data Splits

| Split | Examples |
|-------|---------:|
| train | 39,402 |
| validation | 4,379 |
| test | 4,865 |
| **total** | **48,646** |

## Source Data

Submissions were collected from historical logs of the Circle Cat online learning
platform (a self-hosted Moodle instance with an integrated Online Judge). They were
generated organically by learners of varying proficiency during ordinary coursework, so
they provide a realistic and diverse distribution of student code errors.

## Personal and Sensitive Information

The data were collected from pre-existing educational records under the platform's terms
of use (which inform users that anonymized data may be used for educational and research
purposes), with no recruitment or experimental intervention. **All identifiers have been
irreversibly anonymized**; the dataset contains **no personally identifiable information
(PII)** and no offensive content.

## Licensing Information

Released under the
[Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)](https://creativecommons.org/licenses/by-nc/4.0/)
license.

## Citation

```bibtex
@misc{li2026pymeta,
  title        = {PyMETA: A Benchmark Dataset for Hierarchical Student Code Error
                  Classification with Python-Interpreter-Based Labels},
  author       = {Li, Chuyue and Tang, Ziqi and Wang, Jingyi and Wu, Yu and
                  Hashimoto, Kazuma and Gao, Lingyu},
  year         = {2026},
  howpublished = {\url{https://github.com/Circle-Cat/pymeta}},
  note         = {CircleCat}
}
```

<!-- TODO: replace with the final arXiv / ACL citation once available. -->