carant-ai/indonesian_sentiment_dataset
Viewer • Updated • 1.03M • 30 • 1
How to use carant-ai/xlm-roberta-sentiment-large with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="carant-ai/xlm-roberta-sentiment-large") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("carant-ai/xlm-roberta-sentiment-large")
model = AutoModelForSequenceClassification.from_pretrained("carant-ai/xlm-roberta-sentiment-large")Finetuned xlm-roberta-large for Sentiment Analysis in English and Bahasa Indonesia
Trained on TPU VM v4-8 for ~5 hours
| epoch | step | train_accuracy | train_loss | val_accuracy | val_loss |
|---|---|---|---|---|---|
| 0 | 10782 | 0.964588165 | 0.095930442 | 0.967545867 | 0.08873909 |
| 1 | 21565 | 0.970602274 | 0.079982288 | 0.968977571 | 0.08539474 |
For replication, go to GitHub page