Noorrabie commited on
Commit
11d894c
·
1 Parent(s): 6d67ed8

Add BAREC-X data and dataset card

Browse files
Files changed (6) hide show
  1. README.md +122 -0
  2. annotations.parquet +3 -0
  3. gemini.parquet +3 -0
  4. gpt.parquet +3 -0
  5. labels.parquet +3 -0
  6. rule_based.parquet +3 -0
README.md ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: cc-by-sa-4.0
3
+ language:
4
+ - ar
5
+ pretty_name: BAREC-X
6
+ task_categories:
7
+ - text-classification
8
+ size_categories:
9
+ - 1K<n<10K
10
+ tags:
11
+ - readability
12
+ - arabic
13
+ - explanations
14
+ configs:
15
+ - config_name: annotations
16
+ default: true
17
+ data_files: annotations.parquet
18
+ - config_name: gpt
19
+ data_files: gpt.parquet
20
+ - config_name: gemini
21
+ data_files: gemini.parquet
22
+ - config_name: rule_based
23
+ data_files: rule_based.parquet
24
+ - config_name: labels
25
+ data_files: labels.parquet
26
+ source_datasets:
27
+ - CAMeL-Lab/BAREC-Corpus-v1.0
28
+ ---
29
+
30
+ # BAREC-X
31
+
32
+ BAREC-X is the first explanation-annotated Arabic readability dataset. It contains 1,793 sentences from the [Balanced Arabic Readability Evaluation Corpus (BAREC)](https://huggingface.co/datasets/CAMeL-Lab/BAREC-Corpus-v1.0), each with its BAREC readability level (1–19, from early literacy to postgraduate comprehension) and the linguistic reasons that justify that level,
33
+ selected by expert annotators from the BAREC annotation guidelines along six dimensions: spelling, word count, morphology, syntax, vocabulary and content.
34
+
35
+ The sentences come from the inter-annotator agreement portion of BAREC and were annotated by three native Arabic-speaking educators.
36
+ About 300 sentences were labelled by all three;
37
+ for those, the released labels are the reasons at least two annotators agreed on.
38
+
39
+ The release also includes the labels predicted for the same sentences by GPT-5.5 and Gemini-3-Flash (four-shot prompting) and by a training-free rule-based system, plus the full label inventory.
40
+
41
+ BAREC-X was introduced in *Benchmarking Fine-Grained Readability Explanations for Arabic* (Rabih, Elmadani, Taha-Thomure and Habash). Project page: https://barec.camel-lab.com/
42
+
43
+
44
+ ## Content
45
+
46
+ | Config | Rows | What it holds |
47
+ |---|---|---|
48
+ | `annotations` (default) | 1,793 | Human annotations: sentence, readability level, labels. |
49
+ | `gpt` | 1,793 | Labels predicted by GPT-5.5 with four-shot prompting. |
50
+ | `gemini` | 1,793 | Labels predicted by Gemini-3-Flash with four-shot prompting. |
51
+ | `rule_based` | 1,793 | Labels predicted by the training-free rule-based system. |
52
+ | `labels` | 148 | The label inventory: code, dimension, level, Arabic description. |
53
+
54
+
55
+ The four sentence tables have the same 1,793 rows in the same order and share the `id` column, so they can be joined on `id` or compared row by row.
56
+
57
+ All three systems receive the sentence and its gold readability level and return the reasons that justify that level.
58
+ The LLM prompts contain a task description, the BAREC guideline excerpt for the sentence's level, and four example sentences with their gold reasons.
59
+ The rule-based system extracts its features with CAMeL Tools 1.5.6 and CamelParser 2.0 and returns the activated reasons whose guideline level matches the given level.
60
+
61
+
62
+ ## Loading
63
+
64
+ ```python
65
+ from datasets import load_dataset
66
+
67
+ repo = "CAMeL-Lab/BAREC-X"
68
+ gold = load_dataset(repo) # human annotations
69
+ gpt = load_dataset(repo, "gpt") # also "gemini", "rule_based"
70
+ labels = load_dataset(repo, "labels") # code -> Arabic description
71
+ ```
72
+
73
+ ## `annotations`
74
+
75
+ | Column | Type | Description |
76
+ |---|---|---|
77
+ | `id` | string | Unique 11-digit sentence identifier. |
78
+ | `sentence` | string | The Arabic sentence. |
79
+ | `readability_level` | int | Readability level, 1–19. |
80
+ | `spelling` | list of string | Spelling label codes (prefix `O`). |
81
+ | `word_count` | list of string | Word-count label codes (prefix `W`). |
82
+ | `morphology` | list of string | Morphology label codes (prefix `M`). |
83
+ | `syntax` | list of string | Syntax label codes (prefix `S`). |
84
+ | `vocabulary` | list of string | Vocabulary label codes (prefix `V`). |
85
+ | `content` | list of string | Content label codes (prefix `C`). |
86
+
87
+ A dimension with no label is an empty list. A sentence can carry more than one label, in the same dimension or across dimensions.
88
+
89
+ Example row:
90
+
91
+ ```json
92
+ {"id": "10600010006", "sentence": "عالم غريب المعالم", "readability_level": 11, "spelling": [], "word_count": [], "morphology": [], "syntax": ["S11-2"], "vocabulary": [], "content": []}
93
+ ```
94
+
95
+ ## `gpt`, `gemini`, `rule_based`
96
+
97
+ These are the outputs of the systems. They contain the same columns as `annotations` without `readability_level`: `id`, `sentence`, and the six label lists holding that system's predictions. The `sentence` text is identical to `annotations`.
98
+
99
+ ## `labels`
100
+
101
+ | Column | Type | Description |
102
+ |---|---|---|
103
+ | `code` | string | Label code, e.g. `S10-2`. |
104
+ | `dimension` | string | One of `spelling`, `word_count`, `morphology`, `syntax`, `vocabulary`, `content`. |
105
+ | `level` | int or null | The BAREC readability level the label belongs to. Null for the "other" codes. |
106
+ | `description_ar` | string | The label's description in Arabic. |
107
+ | `num_sentences` | int | Number of sentences carrying this label in the human annotations. |
108
+
109
+ A code has the form `<dimension letter><level>-<index>`: `S10-2` is the second syntax label of level 10. Codes ending in `-O` (`M-O`, `S-O`, `V-O`, `C-O`) mean "other" and have no level.
110
+
111
+ Sentences per readability level:
112
+
113
+ | Level | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
114
+ |---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
115
+ | Sentences | 4 | 12 | 34 | 10 | 49 | 55 | 134 | 130 | 61 | 209 | 89 | 423 | 93 | 337 | 75 | 47 | 23 | 3 | 5 |
116
+
117
+
118
+ ## Citation
119
+
120
+ ```bibtex
121
+ TODO
122
+ ```
annotations.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:24fdcdfc80f7cf53c63165f12f39a31f90b872397a268444872f1b7a63955681
3
+ size 163610
gemini.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6003518bf7dc5a9b29957ef819b995da938f59de281e10b5b0c17877a19fe74
3
+ size 162690
gpt.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4524ef470e30ad51f93b8863209eb5494d2a4df7912ee44a2f7a7b64428a9d3c
3
+ size 162280
labels.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:03fed1582b65b58452fc81412d1378f540a5767e882d644f4084b0557a68c9a2
3
+ size 7474
rule_based.parquet ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:33303a1e1d4cac0a951f8cd17cdc9afe67da51e4630bd3a68be9aeba1bfeed7f
3
+ size 161852