Downloads · 30 days
43
0% of all-time downloads
DemangeJeremy/4-sentiments-with-flaubert
4-sentiments-with-flaubert is a text classification model from DemangeJeremy. Use it when you need a label for a piece of text. It is set up for transformers.
Pour toute utilisation de ce modèle, merci d'utiliser cette citation :
Downloads · 30 days
43
0% of all-time downloads
All-time downloads
11.6K
Public
Repo size
4.5 GB
Likes
0
Public
Click a slice to open those files.
.bin1.5 GB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForSequenceClassification
from transformers import pipeline
loaded_tokenizer = AutoTokenizer.from_pretrained('flaubert/flaubert_large_cased')
loaded_model = AutoModelForSequenceClassification.from_pretrained("DemangeJeremy/4-sentiments-with-flaubert")
nlp = pipeline('sentiment-analysis', model=loaded_model, tokenizer=loaded_tokenizer)
print(nlp("Je suis plutôt confiant."))
[{'label': 'OBJECTIVE', 'score': 0.3320835530757904}]
| Epoch | Validation Loss | Samples Per Second |
|---|---|---|
| 1 | 2.219246 | 49.476000 |
| 2 | 1.883753 | 47.259000 |
| 3 | 1.747969 | 44.957000 |
| 4 | 1.695606 | 43.872000 |
| 5 | 1.641470 | 45.726000 |
Pour toute utilisation de ce modèle, merci d'utiliser cette citation :
Jérémy Demange, Four sentiments with FlauBERT, (2021), Hugging Face repository, https://huggingface.co/DemangeJeremy/4-sentiments-with-flaubert