File size: 834 Bytes
90819c5
8a3099e
 
 
 
90819c5
8a3099e
90819c5
8a3099e
90819c5
 
8a3099e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7aae828
8a3099e
 
 
 
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
---
title: SQL Error Classifier
emoji: πŸ—„οΈ
colorFrom: blue
colorTo: indigo
sdk: docker
app_port: 7860
pinned: false
license: mit
---

# SQL Error Classifier β€” Inference

Classify student SQL mistakes using a **CodeBERT cross-encoder** model.

Model: [nishu08/sql-codebert-classifier](https://huggingface.co/nishu08/sql-codebert-classifier)

## Inputs

- **Question** β€” what the student was asked
- **Schema** β€” available tables/columns
- **Student SQL** β€” student's submission
- **Correct SQL** β€” reference answer

## Labels

`JOIN_ERROR`, `AGGREGATION_ERROR`, `FILTER_ERROR`, `WINDOW_FUNCTION_ERROR`,
`SUBQUERY_ERROR`, `NULL_HANDLING_ERROR`, `PERFORMANCE_ERROR`, `LOGICAL_ERROR`, `SYNTAX_ERROR`, `NO_ERROR`

## Secrets (optional)

- `SPACE_MODEL_ID` β€” override model repo (default: `nishu08/sql-codebert-classifier`)