Downloads · 30 days
21
32% of all-time downloads
Safouene/Flaubert_Courriel
Flaubert_Courriel is a text classification model from Safouene. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
from transformers import AutoTokenizer, AutoModelForSequenceClassification from transformers import pipeline
Downloads · 30 days
21
32% of all-time downloads
All-time downloads
66
Public
Repo size
552 MB
Likes
0
Public
Click a slice to open those files.
.pth552 MB · 100%
From the Hugging Face model README
from transformers import AutoTokenizer, AutoModelForSequenceClassification from transformers import pipeline
loaded_tokenizer = AutoTokenizer.from_pretrained('Safouene/Flaubert_Courriel') loaded_model = AutoModelForSequenceClassification.from_pretrained("Safouene/Flaubert_Courriel")
nlp = pipeline('sentiment-analysis', model=loaded_model, tokenizer=loaded_tokenizer)
print(nlp("Je suis plutôt confiant."))