indonlp/indonlu
Updated • 769 • 41
How to use zanafi/sentiment_model with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="zanafi/sentiment_model") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("zanafi/sentiment_model")
model = AutoModelForSequenceClassification.from_pretrained("zanafi/sentiment_model")This model is a fine-tuned version of indolem/indobert-base-uncased on the indonlu 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 | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 1.1939 | 1.0 | 221 | 0.8261 | 0.6932 | 0.7203 | 0.7034 | 0.7056 |
| 0.6866 | 2.0 | 442 | 0.7925 | 0.725 | 0.7378 | 0.7377 | 0.7346 |
| 0.4791 | 3.0 | 663 | 0.7788 | 0.7364 | 0.7397 | 0.7459 | 0.7419 |