AiresPucrs/sentiment-analysis-pt
Viewer • Updated • 85k • 64 • 1
How to use Octavio-Santana/distilbert-base-sentiment-analysis-pt with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="Octavio-Santana/distilbert-base-sentiment-analysis-pt") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("Octavio-Santana/distilbert-base-sentiment-analysis-pt")
model = AutoModelForSequenceClassification.from_pretrained("Octavio-Santana/distilbert-base-sentiment-analysis-pt")This model is a fine-tuned version of distilbert/distilbert-base-multilingual-cased trained on the AiresPucrs/sentiment-analysis-pt dataset available on Hugging Face. It achieves the following results on the evaluation set:
from transformers import pipeline
classifier = pipeline(
"text-classification",
model="Octavio-Santana/distilbert-base-sentiment-analysis-pt"
)
classifier.model.config.id2label = {0: 'negativo', 1: 'positivo'}
result = classifier("Fiquei extremamente satisfeito com o atendimento, superou todas as minhas expectativas.")
# [{'label': 'positivo', 'score': 0.7609153985977173}]
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Accuracy | Validation Loss |
|---|---|---|---|---|
| 0.2665 | 1.0 | 4252 | 0.8872 | 0.2863 |
| 0.2095 | 2.0 | 8504 | 0.9064 | 0.2736 |
| 0.1450 | 3.0 | 12756 | 0.9076 | 0.3191 |