hezarai/sentiment-dksf
Viewer • Updated • 30.9k • 357 • 3
How to use dadashzadeh/roberta-sentiment-persian with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="dadashzadeh/roberta-sentiment-persian") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("dadashzadeh/roberta-sentiment-persian")
model = AutoModelForSequenceClassification.from_pretrained("dadashzadeh/roberta-sentiment-persian")This model is a fine-tuned version of HooshvareLab/roberta-fa-zwnj-base on an unknown dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy |
|---|---|---|---|---|
| 0.5814 | 1.0 | 3576 | 0.4350 | 0.8298 |
| 0.433 | 2.0 | 7152 | 0.4646 | 0.8307 |
| 0.313 | 3.0 | 10728 | 0.5334 | 0.8458 |