File size: 11,109 Bytes
462dca8
 
4041f68
 
 
 
 
 
 
462dca8
4041f68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bac2aa9
4041f68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
bac2aa9
4041f68
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
---
license: apache-2.0
task_categories:
- text2text-generation
language:
- bg
pretty_name: Bulgarian Grammar Mistakes
size_categories:
- 1K<n<10K
---

# Dataset of Bulgarian Grammar Mistakes

## Table of Contents
- [Dataset of Bulgarian Grammar Mistakes](#dataset-of-bulgarian-grammar-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 Grammatical Errors](#introducing-grammatical-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:** 
- **Point of Contact:** -->

### Dataset Summary

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

### Supported Tasks

- `text2text-generation`: The dataset can be used to train a model for grammar error correction, which consists in correction of grammatical 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:
  - **article_misuse**
  - **pronoun_misuse**
  - **incorrect_verb_suffix_me**
  - **noun_adjective_disagreement**
- `erroeneous`: a string sequence of the erroneous sentence 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 and the [OSCAR](https://oscar-project.org) dataset.

### Initial Data Collection and Normalization

The data collection process was such:
1) Data collection:
  - Articles from Bulgarian Wikipedia were collected using Wikipedia's API.
  - Rows from OSCAR's Bulgarian datasets were added to the collection.
2) The source texts underwent POS tagging and sentence segmentation using the tool [Bulgarian NLP pipeline in CLaRK System](http://bultreebank.org/en/resources-2/) developed by [BulTreeBank Team](http://bultreebank.org/en/).
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 Grammatical Errors

The dataset has been created by introduced grammatical 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

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) **article_misuse**: switching the full/short article form for nouns and adjectives in the masculine grammatical gender
    - Replacing the full article with the short one: *'**Политикът** сподели плановете за новата реформа.'* -> *'**Политика** сподели плановете за новата реформа.'*
    - Replacing the short article with the full one: *'Галена седна на **стола**.'* -> *'Галена седна на **столът**.'*
2) **pronoun_misuse**: switching pronouns with their alternative forms in terms of case, number or grammatical gender.
    - **Interrogative pronouns** ('въпросителни местоимения' - кой, коя, кое)
      - Replacing the nominative form with the accusative one: *'**Кой** си милиш че си ти?'* -> *'**Кого** мислиш че си ти?'*
      - Replacing the accusative form with the nominative one: *'За **кого** говориш?'* -> *'За **кой** говориш?'*
    - **Relative pronouns** ('относителни местоимения' - който, която, което)
      - Replacing the nominative case form with the accusative one: *'**Който** не работи, не трябва да яде.'* -> *'**Когото** не работи, не трябва да яде.'*
      - Replacing the accusative case form with the nominative one: *'Няма човек тук, на **когото** Димо не се е похвалил.'* -> *'Няма човек тук, на **който** Димо не се е похвалил.'*
      - Replacing with respect to the grammatical gender and count:
        - *'Неизменно ги приветстваше с реч дама, **чийто** съпруг се представяше за голям патриот.'* –> *'Неизменно ги приветстваше с реч дама, **чиято** съпруг се представяше за голям патриот.'*
        - *'Ще работиш с режисьор, **чиито** възгледи граничат с абсурдното.'* -> *'Ще работиш с режисьор, **чийто** възгледи граничат с абсурдното.'*
3) **incorrect_verb_suffix_me**: Appending the character 'е' to plural verbs in the first person that end with 'м'.
    - *'пишем'* -> *'**пишеме**'*
    - *'водим'* -> *'**водиме**'*
    - *'вадим'* -> *'**вадиме**'*
    - *'тресем'* -> *'**тресеме**'*
4) **noun_adjective_disagreement**: Switching adjectives with their alternative forms in terms of grammatical gender and number when found in pair with a noun.
    - Replacing adjectives in adjective-noun pairs with respect to their grammatical gender:
      - *'Ще ти е нужен **голям** монитор.'* -> *'Ще ти е нужен **голяма** монитор.'*
      - *'Ще ти е нужен **голям** монитор.'* -> *'Ще ти е нужен **голямо** монитор.'*
      - *'Това е най-**красивата** сграда, която съм виждал.'* -> *'Това е най-**красивото** сграда, която съм виждал.'*
      - *'Това е най-**красивата** сграда, която съм виждал.'* -> *'Това е най-**красивия** сграда, която съм виждал.'*
      - *'Едно **пухкаво** зайче се появи в градината.'* -> *'Едно **пухкава** зайче се появи в градината.'*
      - *'Едно **пухкаво** зайче се появи в градината.'* -> *'Едно **пухкав** зайче се появи в градината.'*
    - Replacing adjectives in adjective-noun pairs with respect to their number (singular/plural):
      - *'Мартине, виждал ли си ми **кафявите** очила?'* -> *'Мартине, виждал ли си ми **кафявия** очила?'*
      - *'Сложи си нещата на **бялата** маса!'* -> *'Сложи си нещата на **белите** маса!'*

### Personal and Sensitive Information

The source of this dataset is open-source data collections (Wikipedia and [OSCAR](https://oscar-project.org)) 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 grammatical 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.
-->