LukasStankevicius commited on
Commit
4b3189a
1 Parent(s): ce00c6c

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +32 -0
README.md ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language: lt
3
+ tags:
4
+ - byt5
5
+ - Lithuanian
6
+ - grammatical error correction
7
+ widget:
8
+ - text: 'Sveiki pardodu tvarkyngą "Audi" firmos automobylį. Kątik iš Amerikės. Viena savininka prižiurietas ir mylietas Automobylis. Dar turu patobulintą „Mersedes“ su automatinia greičių pavara už 4000 evrų (iš Amerikės). Taippat tvarkingas.'
9
+
10
+ license: apache-2.0
11
+ ---
12
+ This is *google/byt5-small* transformer model trained on Lithuanian text for ~100 hours.
13
+ It was created during the work **Towards Lithuanian Grammatical Error Correction**, which will be presented at [11th Computer Science On-line Conference 2022](https://csoc.openpublish.eu/).
14
+
15
+ The model is yet in its infancy (we are planning to train 100x longer in the future). Nevertheless, it clearly shows the possibilities and capabilities.
16
+
17
+ ## Usage
18
+ Given the following corrupted text obtained from [https://www.diktantas.lt/pasitikrink-lietuviu-kalbos-zinias]:
19
+ ```
20
+ text = 'Sveiki pardodu tvarkyngą "Audi" firmos automobylį. Kątik iš Amerikės. Viena savininka prižiurietas ir mylietas Automobylis. Dar turu patobulintą „Mersedes“ su automatinia greičių pavara už 4000 evrų (iš Amerikės). Taippat tvarkingas.'
21
+ ```
22
+ The correction can be obtained by:
23
+ ```python
24
+ from transformers import pipeline
25
+ name= "LukasStankevicius/ByT5-Lithuanian-gec-100h"
26
+ my_pipeline = pipeline(task="text2text-generation", model=name, framework="pt")
27
+ corrected_text = my_pipeline(text)[0]["generated_text"]
28
+ print(corrected_text)
29
+ ```
30
+ Output from above would be:
31
+
32
+ Sveiki parduodu tvarkingą „Audi“ firmos automobilį. Ką tik iš Amerikės. Viena savininkas prižiūrintas ir mylimas automobilis. Dar turiu patobulintą „Mersedes“ su automatine greičių pavara už 4000 eurų (iš Amerikės). Taip pat tvarkingas.