File size: 1,895 Bytes
3f79661 5c5d4da b24728d 5c5d4da 59570ea 5c5d4da 59570ea 5c5d4da 59570ea 5c5d4da 59570ea 5c5d4da 59570ea 5c5d4da 3f79661 3e62031 5c5d4da 347e856 5c5d4da 3e62031 |
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 |
---
language: fr # <-- my language
datasets:
- news_commentary
widget:
- text: "Ne laisse aucun résidu. Ne nécessite pas de nettoyage après l'application."
example_title: "Fluent example 1"
- text: "Nous n'avons pas d'argent et aucune relation."
example_title: "Fluent example 2"
- text: "C'est marrant comme tout le monde oublie ça, hein ?"
example_title: "Fluent example 3"
- text: "Il estaaaaaaaaaaad impr2éviswwible, oui,i,v.1 danfaagereux."
example_title: "Disfluent example 1"
- text: "L'hépssasdati@!@@!te, oui, une pleaaane indemnisation."
example_title: "Disfluent example 2"
- text: "Après une\\s hééésiéétation,!!! j'ai fait signe que oui."
example_title: "Disfluent example 3"
license: other
---
This model was trained for evaluating linguistic acceptability and grammaticality. The finetuning was carried out based off [the camembert-base model](https://huggingface.co/camembert/camembert-base).
To use the model:
```python
from transformers import pipeline
classifier = pipeline("text-classification", model = 'EIStakovskii/camembert_base_fluency')
print(classifier("Il estaaaaaaaaaaad impr2éviswwible, oui,i,v.1 danfaagereux."))
```
Label_1 means ACCEPTABLE - the sentence is perfectly understandable by native speakers and has no serious grammatic and syntactic flaws.
Label_0 means NOT ACCEPTABLE - the sentence is flawed both orthographically and grammatically.
The model was trained on 50 thousand French sentences from [the news_commentary dataset](https://huggingface.co/datasets/news_commentary). Out of 50 thousand 25 thousand sentences were algorithmically corrupted using [the open source Python library](https://github.com/eistakovskii/text_corruption_plus). The library was originally developed by [aylliote](https://github.com/aylliote/corruption), but it was slightly adapted for the purposes of this model. |