Text Classification
Transformers
Indonesian
sentiment-analysis
toxicity-detection
indobert
multitask-learning
Instructions to use Fireclow/indobert-sentiment-toxicity-multitask with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Fireclow/indobert-sentiment-toxicity-multitask with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="Fireclow/indobert-sentiment-toxicity-multitask")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Fireclow/indobert-sentiment-toxicity-multitask", dtype="auto") - Notebooks
- Google Colab
- Kaggle
IndoBERT Multitask β Sentiment & Toxicity (Indonesian)
Fine-tuned indobenchmark/indobert-base-p1 for Indonesian social media comments:
| Task | Labels |
|---|---|
| Sentiment | negative, neutral, positive |
| Toxicity | non_toxic, toxic |
Files
best_model.ptβ multitask checkpoint (encoder + two classification heads)label_mappings.ptβ id β label mapstokenizer/β tokenizer files
Usage with this project
Set in Streamlit secrets or environment:
HF_MODEL_REPO=Fireclow/indobert-sentiment-toxicity-multitask
Test metrics (held-out split)
- Sentiment accuracy: ~95%
- Toxicity accuracy: ~92%
University NLP final project.