File size: 8,290 Bytes
a80527e
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
---
license: apache-2.0
task_categories:
- text2text-generation
language:
- bg
pretty_name: Bulgarian Spelling Mistakes
size_categories:
- 10K<n<100K
---

# Dataset of Bulgarian Spelling Mistakes

## Table of Contents
- [Dataset of Bulgarian Spelling Mistakes](#dataset-of-bulgarian-spelling-mistakes)
  - [Table of Contents](#table-of-contents)
  - [Dataset Description](#dataset-description)
    - [Dataset Summary](#dataset-summary)
    - [Supported Tasks](#supported-tasks)
    - [Languages](#languages)
  - [Dataset Structure](#dataset-structure)
    - [Data Instances](#data-instances)
    - [Data Fields](#data-fields)
    - [Data Splits](#data-splits)
  - [Dataset Creation](#dataset-creation)
    - [Curation Rationale](#curation-rationale)
    - [Source Data](#source-data)
    - [Initial Data Collection and Normalization](#initial-data-collection-and-normalization)
    - [Introducing Spelling Errors](#introducing-spelling-errors)
    - [Personal and Sensitive Information](#personal-and-sensitive-information)
  - [Considerations for Using the Data](#considerations-for-using-the-data)
    - [Social Impact of Dataset](#social-impact-of-dataset)
    - [Discussion of Biases](#discussion-of-biases)
    - [Other Known Limitations](#other-known-limitations)
  - [Additional Information](#additional-information)
<!--
    - [Dataset Curators](#dataset-curators)-->
    - [Licensing Information](#licensing-information)
<!-- - [Citation Information](#citation-information)
    - [Contributions](#contributions)-->

## Dataset Description

- **Paper :** https://aclanthology.org/2024.icnlsp-1.38/
- **Point of Contact:** Bozhidar Klouchek; Please contact klouchek.bozhidar@gmail.com

### Dataset Summary

This is a dataset of sentences in Bulgarian with spelling mistakes created by automatically inducing errors in correct sentences.

### Supported Tasks

- `text2text-generation`: The dataset can be used to train a model for spelling error correction, which consists in correction of spelling errors. in a source sentence, resulting in a correct version.

### Languages

- `bg`: Only Bulgarian is supported by this dataset.

## Dataset Structure

### Data Instances

Each instance contains an `error_type`, which can be one of four pre-defined classes. This error_type describes the error found in the sequence in `erroeneous` which has been corrected in the sequence under `correct`.

```
{
  'error_type': 'article_misuse',
  'erroeneous': 'Възстанието влияе на всички ни!',
  'correct': 'Въстанието влияе на всички ни!'
}
```

### Data Fields

- `error_type`: a string sequence that can be one of:
  - **vowel_change**
  - **double_consonant**
  - **end_of_lemma_consonant**
  - **double_t_or_n**
  - **loss_of_t_or_d_sound**
  - **random_char**
  - **semantic**
- `erroeneous`: a string sequence of the erroneous sentence containing up to three errors in the error-correct pair
- `correct`: a string sequence of the correct sentence in the error-correct pair

### Data Splits

No pre-defined split has been applied to the dataset so the developer has the freedom to choose one that suits the task.

## Dataset Creation

### Curation Rationale

Main motivations for the creating of this dataset:
- resources for error correction NLP systems in Bulgarian are scarce, so this dataset aims to enocourage the development and evaluation of more such systems,
- solutions within Bulgarian NLP are traditional machine learning methods, so a dataset like this aims to encourage the development of state-of-the-art models (e.g. deep learning approaches)

### Source Data

The source data for this dataset has been collected from Bulgarian Wikipedia articles.

### Initial Data Collection and Normalization

The data collection process was such:
1) Data collection: Articles from Bulgarian Wikipedia were collected using Wikipedia's API.
2) The source texts underwent POS tagging and sentence segmentation using the tool from the work of [(Berbatova M., Ivanov F.,2023)](https://doi.org/10.60063/gsu.fmi.110.37-50).
3) Only sentences that (1) have three or more words, and (2) contain a token tagged as a verb were kept, as many of the sentences were simply article titles, links and other textual data we weren't interested in.

### Introducing Spelling Errors

The dataset has been created by introduced spelling  errors in correct sentences.

Errors of the pre-defined types were induced using Python scripts, taking into account the error's nature, the algorithm is outlined as such:
- Take a source sentence, which would be kept as the reference.
- Induce an error of the pre-defined types, if that is possible (some sentences do not contain necessary pre-requisites for certain error types e.g. a relative pronoun is necessary to introduce an error of that type)
- Pair up the correct and erroneous versions

These errors have only been applied to lemmas:
- larger than three characters, because shorter words tend to be functional words, and
- not containg capitalised letters, on the assumption that it might be a named entity

The resulting erroneous sentences were created with four different types of changes, reflected in the error_type column. In the examples below the first sequence is the **CORRECT** form, and the resulting sequence is **ERRONEOUS**.
1) **vowel_change**: a vowel that is not under stress is changed to its twin sounding vowel (e.g. 'кръг**ъ**л' -> 'кръг**а**л')
2) **double_consonant**: when two neighbouring consonants with differing sound strengths change the first one to match the second ('постано**в**ка' -> 'постано**ф**ка')
3) **end_of_lemma_consonant**: changing a strong sounding consonant to its weak sounding twin if at the end of a lemma ('маси**в**' -> 'маси**ф**')
4) **double_t_or_n**: removing one of the 'н' or 'т' letters when two of the same kind are found neighbouring, often in suffixes ('пролет**т**а' -> пролета, един**н**о -> едино)
5) **loss_of_t_or_d_sound**: removing either 'т' or 'д' if found in a lemma where the sound of the removed letter is lost ('вес**т**ник' -> 'весник', 'звез**д**на' -> звезна)
6) **random_char**: replacing one random character in a lemma with another random character ('мо**м**иче' -> 'мо**г**иче')
7) **semantic**: replacing, removing, adding a character or swapping two characters of a lemma such that the resulting word is a valid word syntactically, but the sentence is no longer semantically coherent ('Момчето, което обичам.' -> 'Момчето, ко**т**ето обичам.')

### Personal and Sensitive Information

The source of this dataset is open-source data collections (Wikipedia) and carry the same amount of risk of personal and/or sensitive information as they do.

## Considerations for Using the Data

### Social Impact of Dataset

A dataset like this can be beneficial for language learners and developers in the error correction community.

### Discussion of Biases

The `error_type` classes are not distributed equally, as some errors are more common than others. It's important the developer utlising this dataset is aware of this as to not create error correction system/evaluations that are biased.

### Other Known Limitations

There are many spelling errors not covered by this dataset, as it's the first of its kind. Hopefully, it encourages people to create more datasets like this and models that utilise them.

## Additional Information

<!--
### Dataset Curators

List the people involved in collecting the dataset and their affiliation(s). If funding information is known, include it here. -->

### Licensing Information

The license of the dataset is [apache2.0](https://www.apache.org/licenses/LICENSE-2.0).

<!--
### Citation Information

Provide the [BibTex](http://www.bibtex.org/)-formatted reference for the dataset. For example:
```
@article{article_id,
  author    = {Author List},
  title     = {Dataset Paper Title},
  journal   = {Publication Venue},
  year      = {2525}
}
```

If the dataset has a [DOI](https://www.doi.org/), please provide it here.

### Contributions

Thanks to [@github-username](https://github.com/<github-username>) for adding this dataset.
-->