carant-ai/indonesian_sentiment_dataset
Viewer • Updated • 1.03M • 38 • 1
How to use carant-ai/xlm-roberta-sentiment-base with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="carant-ai/xlm-roberta-sentiment-base") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("carant-ai/xlm-roberta-sentiment-base")
model = AutoModelForSequenceClassification.from_pretrained("carant-ai/xlm-roberta-sentiment-base")Finetuned xlm-roberta-base for Sentiment Analysis in English and Bahasa Indonesia
Trained on TPU VM v4-8 for ~3 hours
| epoch | step | train_accuracy | train_loss | val_accuracy | val_loss |
|---|---|---|---|---|---|
| 0 | 5391 | 0.955597997 | 0.118527733 | 0.963498533 | 0.098501749 |
| 1 | 10783 | 0.965486944 | 0.092906699 | 0.964689374 | 0.094814248 |
| 2 | 16175 | 0.968293846 | 0.085916176 | 0.965770006 | 0.093040377 |
For replication, go to GitHub page