Downloads · 30 days
19
33% of all-time downloads
WolfPTL/sg-sentiment-roberta
sg-sentiment-roberta is a machine learning model from WolfPTL. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
Fine-tuned sentiment analysis model for Singapore social media, with post-training calibration for improved accuracy.
Downloads · 30 days
19
33% of all-time downloads
All-time downloads
58
Public
Parameters
278M
7.8 GB on disk
Likes
0
Public
Click a slice to open those files.
.pt4.4 GB · 57%
From the Hugging Face model README
Fine-tuned sentiment analysis model for Singapore social media, with post-training calibration for improved accuracy.
| Metric | Before Calibration | After Calibration | Improvement |
|---|---|---|---|
| Accuracy | 52.6% | 64.0% | +11.4% |
| MAE | 0.126 | 0.104 | -0.022 |
| RMSE | 0.168 | 0.141 | -0.027 |
| Score | Category |
|---|---|
| 0.00 - 0.20 | Very Negative |
| 0.21 - 0.40 | Negative |
| 0.41 - 0.60 | Neutral |
| 0.61 - 0.80 | Positive |
| 0.81 - 1.00 | Very Positive |
from transformers import AutoTokenizer
from modeling_calibrated import CalibratedRegressionModel
# Load model (calibration is automatic!)
model_name = "your-username/roberta-singapore-sentiment"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = CalibratedRegressionModel.from_pretrained(model_name)
# Predict sentiment
text = "This chicken rice is damn shiok sia!"
result = model.predict_sentiment(text, tokenizer)
print(f"Score: {result['score']:.3f}") # 0.875
print(f"Category: {result['category']}") # "Very Positive"
After fine-tuning, we applied isotonic regression calibration on a validation set. This corrects systematic bias patterns where the model was:
The calibration layer is built into the model - you get calibrated predictions automatically!
cardiffnlp/twitter-roberta-base-sentiment-latestThis model understands Singlish patterns and Singapore-specific terminology:
@misc{roberta-singapore-calibrated,
title = {Singapore Sentiment Analyzer - ROBERTA (Calibrated)},
year = {2026},
publisher = {HuggingFace},
url = {https://huggingface.co/your-username/roberta-singapore-sentiment}
}
MIT License - Free for commercial and non-commercial use.