salmane11 commited on
Commit
6b0cd82
·
verified ·
1 Parent(s): 023131e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +104 -1
README.md CHANGED
@@ -27,4 +27,107 @@ tags:
27
  - Arabic-dialect
28
  size_categories:
29
  - 1K<n<10K
30
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  - Arabic-dialect
28
  size_categories:
29
  - 1K<n<10K
30
+ ---
31
+
32
+ # Dialect2SQL
33
+
34
+ ## Dataset Description
35
+
36
+ **Dialect2SQL** is a novel dataset designed for the **Text-to-SQL** task in **Arabic dialects**, with a particular focus on **Moroccan Darija**.
37
+ It provides natural language questions written in Darija, paired with corresponding SQL queries and database schemas.
38
+ The dataset enables research on **low-resource natural language interfaces to databases (NLIDB)** in non-standard Arabic varieties.
39
+
40
+ ---
41
+
42
+ ## Dataset Summary
43
+
44
+ Dialect2SQL aims to bridge the gap between Arabic dialects and structured query understanding.
45
+ The dataset consists of manually and semi-automatically curated **Darija–SQL** pairs mapped to realistic database schemas spanning multiple domains (e.g., education, e-commerce, banking, and transportation).
46
+ Each entry contains:
47
+ - a **Darija** question (`darija_question`)
48
+ - an optional **English translation** (`en_question`)
49
+ - the **SQL query** (`sql`)
50
+ - the **database schema** (`db_schema`)
51
+ - the **database name** (`db_id`)
52
+
53
+ ---
54
+
55
+ ## Supported Tasks and Leaderboards
56
+
57
+ ### Task: Text-to-SQL / NLQ-to-SQL
58
+
59
+ Given a natural language question written in **Darija (Moroccan Arabic)**, the goal is to generate the correct **SQL query** that retrieves the requested information.
60
+
61
+ **Example Task:**
62
+
63
+ | Field | Example |
64
+ |-------|----------|
65
+ | `darija_question` | شحال من تلميذ عندو أكثر من 15 ف الرياضيات؟ |
66
+ | `en_question` | How many students scored more than 15 in mathematics? |
67
+ | `sql` | SELECT COUNT(*) FROM Grades WHERE subject = 'Mathematics' AND grade > 15; |
68
+ | `db_schema` | CREATE TABLE Grades(student_id number, subject varchar, grade real); |
69
+ | `db_id` | School_DB |
70
+
71
+ ---
72
+
73
+ ## Languages
74
+
75
+ - **Darija (Moroccan Arabic)** — primary source language
76
+ - **English** — provided for reference and cross-lingual studies
77
+
78
+ ---
79
+
80
+ ## Data Splits
81
+
82
+ | Split | Size (approx.) | Description |
83
+ |-------|----------------|-------------|
84
+ | `train` | ~7,000 | Main training set |
85
+ | `validation` | ~1,000 | Development split |
86
+ | `test` | ~1,000 | Evaluation split |
87
+ | `Dialect2SQL` | full dataset | Combined dataset file |
88
+
89
+ ---
90
+
91
+ ## Dataset Structure
92
+
93
+ Each row in the dataset includes:
94
+
95
+ | Column | Description |
96
+ |---------|--------------|
97
+ | `db_id` | Database identifier |
98
+ | `db_schema` | SQL table definitions |
99
+ | `darija_question` | Question in Moroccan Darija |
100
+ | `en_question` | English translation (optional) |
101
+ | `sql` | Target SQL query |
102
+
103
+ ---
104
+
105
+ ## Use Cases
106
+
107
+ - Fine-tuning **text-to-SQL models** for Arabic dialects
108
+ - Research on **multilingual and dialectal NLIDB systems**
109
+ - **Cross-lingual transfer learning** for SQL understanding
110
+ - Evaluating **low-resource adaptation** of code LLMs (e.g., Qwen, StarCoder, Codex)
111
+
112
+ ---
113
+
114
+ ## Limitations
115
+
116
+ - The dataset currently focuses on **Moroccan Darija**, and performance may not generalize to other Arabic dialects.
117
+ - Some questions are written using **Arabic script**, while others mix **Latin characters** (Arabizi), reflecting real user input diversity.
118
+ - SQL coverage is limited to **single-domain, schema-bounded** tasks.
119
+
120
+ ---
121
+
122
+ ## Citation
123
+
124
+ If you use this dataset, please cite the following paper:
125
+
126
+ ```bibtex
127
+ @inproceedings{chafik2025dialect2sql,
128
+ title={Dialect2SQL: A Novel Text-to-SQL Dataset for Arabic Dialects with a Focus on Moroccan Darija},
129
+ author={Chafik, Salmane and Ezzini, Saad and Berrada, Ismail},
130
+ booktitle={Proceedings of the 4th Workshop on Arabic Corpus Linguistics (WACL-4)},
131
+ pages={86--92},
132
+ year={2025}
133
+ }