Datasets:
Update README.md
Browse files
README.md
CHANGED
@@ -1,32 +1,30 @@
|
|
1 |
-
---
|
2 |
-
language: fr
|
3 |
-
tags:
|
4 |
-
- grammar
|
5 |
-
- spelling correction
|
6 |
-
license: mit
|
7 |
-
datasets:
|
8 |
-
- synthetic
|
9 |
-
---
|
10 |
-
|
11 |
-
# Spelling correction dataset (French)
|
12 |
-
|
13 |
-
This dataset is generated by transforming/corrupting sentences of a French news corpus
|
14 |
-
provided by the [University of Leipzig](https://wortschatz.uni-leipzig.de/en/download/French).
|
15 |
-
|
16 |
-
The following transformations are applied to words in the sentences:
|
17 |
-
- concatenation of pairs of words
|
18 |
-
- swapping of neighboring letters in words
|
19 |
-
- insertion
|
20 |
-
- deletion
|
21 |
-
- replacement (by neighboring characters in AZERTY keyboard)
|
22 |
-
|
23 |
-
|
24 |
-
## Generation
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
```
|
32 |
-
|
|
|
1 |
+
---
|
2 |
+
language: fr
|
3 |
+
tags:
|
4 |
+
- grammar
|
5 |
+
- spelling correction
|
6 |
+
license: mit
|
7 |
+
datasets:
|
8 |
+
- synthetic
|
9 |
+
---
|
10 |
+
|
11 |
+
# Spelling correction dataset (French)
|
12 |
+
|
13 |
+
This dataset is generated by transforming/corrupting sentences of a French news corpus
|
14 |
+
provided by the [University of Leipzig](https://wortschatz.uni-leipzig.de/en/download/French).
|
15 |
+
|
16 |
+
The following transformations are applied to words in the sentences:
|
17 |
+
- concatenation of pairs of words
|
18 |
+
- swapping of neighboring letters in words
|
19 |
+
- insertion
|
20 |
+
- deletion
|
21 |
+
- replacement (by neighboring characters in AZERTY keyboard)
|
22 |
+
|
23 |
+
|
24 |
+
## Generation
|
25 |
+
|
26 |
+
```bash
|
27 |
+
./scripts/get_data.py -t news -y 2023 -s 10K
|
28 |
+
./scripts/generate_dataset.py -i data/fra_news_2023_10k/fra_news_2023_10k-sentences.txt
|
29 |
+
```
|
30 |
+
|
|
|
|