Back to all models
text-classification mask_token: [MASK]
Query this model
🔥 This model is currently loaded and running on the Inference API. ⚠️ This model could not be loaded by the inference API. ⚠️ This model can be loaded on the Inference API on-demand.
JSON Output
API endpoint
								curl -X POST \
-H "Content-Type: application/json" \
-d '"json encoded string"' \
Share Copied link to clipboard

Monthly model downloads

Hate-speech-CNERG/dehatebert-mono-indonesian Hate-speech-CNERG/dehatebert-mono-indonesian
last 30 days



Contributed by

Hate-ALERT university
4 team members · 9 models

How to use this model directly from the 🤗/transformers library:

Copy to clipboard
from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("Hate-speech-CNERG/dehatebert-mono-indonesian") model = AutoModelForSequenceClassification.from_pretrained("Hate-speech-CNERG/dehatebert-mono-indonesian")

This model is used detecting hatespeech in Indonesian language. The mono in the name refers to the monolingual setting, where the model is trained using only Arabic language data. It is finetuned on multilingual bert model. The model is trained with different learning rates and the best validation score achieved is 0.844494 for a learning rate of 2e-5. Training code can be found at this url