Datasets:
Tasks:
Text Classification
Modalities:
Text
Formats:
parquet
Languages:
Swedish
Size:
10K - 100K
License:
Set CC BY-SA 4.0, add attribution, drop unlicensed starter rows
Browse files
README.md
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
dataset_info:
|
| 3 |
features:
|
| 4 |
- name: id
|
|
@@ -35,3 +40,23 @@ configs:
|
|
| 35 |
- split: test_synth
|
| 36 |
path: data/test_synth-*
|
| 37 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
language:
|
| 3 |
+
- sv
|
| 4 |
+
license: cc-by-sa-4.0
|
| 5 |
+
task_categories:
|
| 6 |
+
- text-classification
|
| 7 |
dataset_info:
|
| 8 |
features:
|
| 9 |
- name: id
|
|
|
|
| 40 |
- split: test_synth
|
| 41 |
path: data/test_synth-*
|
| 42 |
---
|
| 43 |
+
|
| 44 |
+
# Swedish grammaticality dataset
|
| 45 |
+
|
| 46 |
+
8,325 clean/corrupted pairs built from 10,000 Swedish Wikipedia sentences. Each pair holds one clean sentence and one copy with 1 to 3 rule-based errors. Pairs are split by group, so a sentence and its corrupted copy never land in different splits.
|
| 47 |
+
|
| 48 |
+
| Split | Rows |
|
| 49 |
+
|---|---|
|
| 50 |
+
| train | 16,650 |
|
| 51 |
+
| val | 922 |
|
| 52 |
+
| test_synth | 926 |
|
| 53 |
+
|
| 54 |
+
Clean sentences are 6 to 40 words and score 0.97. Corrupted copies score `0.97 * exp(-7.9 * weighted_errors / words)`, where spelling counts as half an error and every other rule counts as one. The nine rules cover article gender, definiteness, verb-second order, word order, deletion, duplication, `de`/`dem`, verb form, and spelling.
|
| 55 |
+
|
| 56 |
+
Columns: `id`, `text`, `score` (0 to 1), `label` (`good`/`poor`), `errors` (rule names), `group` (shared by a pair).
|
| 57 |
+
|
| 58 |
+
Training also used 478 examples from the AI Sweden starter set for this assignment. They are not included here because that data has no stated license.
|
| 59 |
+
|
| 60 |
+
## Licence and attribution
|
| 61 |
+
|
| 62 |
+
The source text is Swedish Wikipedia (`wikimedia/wikipedia`, config `20231101.sv`), licensed CC BY-SA 4.0. Sentence filtering, error injection, and scoring are modifications by the dataset author. This dataset is shared under CC BY-SA 4.0. Attribute the text to the Wikipedia contributors.
|