defunct-datasets/amazon_reviews_multi
Updated • 4.53k • 102
How to use Safouene/OpenB_snetiement_analysis_test with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Safouene/OpenB_snetiement_analysis_test") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Safouene/OpenB_snetiement_analysis_test")
model = AutoModelForSequenceClassification.from_pretrained("Safouene/OpenB_snetiement_analysis_test")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Safouene/OpenB_snetiement_analysis_test")
model = AutoModelForSequenceClassification.from_pretrained("Safouene/OpenB_snetiement_analysis_test")This is a flaubert model finetuned for sentiment analysis on company emails in French. It predicts the sentiment of the email, from negative to positive.
This model is intended for direct use as a sentiment analysis model for French emails, or for further finetuning on related sentiment analysis tasks.
The training data consists of the French portion of emails_multi, supplemented with another 40,000 similar emails.
The finetuned model was evaluated on the French test set of emails_multi.
| Language | Accuracy (exact) |
|---|---|
| French | 95% |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Safouene/OpenB_snetiement_analysis_test")