indonlp/indonlu
Updated • 1.38k • 40
How to use arcleife/roberta-sentiment-id with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="arcleife/roberta-sentiment-id") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("arcleife/roberta-sentiment-id")
model = AutoModelForSequenceClassification.from_pretrained("arcleife/roberta-sentiment-id")# Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("arcleife/roberta-sentiment-id")
model = AutoModelForSequenceClassification.from_pretrained("arcleife/roberta-sentiment-id")Sentiment analysis model for Indonesian language. Built from xlm-roberta-base using indonlp/indonlu dataset.
This is the model card of a 🤗 transformers model that has been pushed on the Hub. This model card has been automatically generated.
Sentiment analysis dataset on indolu created by indonlp.
Refer here.
Training hyperparameters
| Epoch | Training Loss | Validation Loss | F1 | Recall | Precision |
|---|---|---|---|---|---|
| 1 | No log | 0.283834 | 0.908730 | 0.908730 | 0.908730 |
| 2 | No log | 0.248232 | 0.930952 | 0.930952 | 0.930952 |
| 3 | No log | 0.282172 | 0.930952 | 0.930952 | 0.930952 |
| 4 | No log | 0.257302 | 0.936508 | 0.936508 | 0.936508 |
| 5 | No log | 0.271212 | 0.939683 | 0.939683 | 0.939683 |
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="arcleife/roberta-sentiment-id")