Flaubert_Courriel / README.md
Safouene's picture
Update README.md
eccadaa
metadata
license: apache-2.0
language:
  - fr
metrics:
  - accuracy
library_name: transformers
pipeline_tag: text-classification

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."))