Downloads · 30 days
37
59% of all-time downloads
TeoMatosevic/croatian-hate-speech-bertic
croatian-hate-speech-bertic is a text classification model from TeoMatosevic. Use it when you need a label for a piece of text. The card lists the license as mit.
This model is a fine-tuned version of classla/bcms-bertic for binary hate speech classification in Croatian.
Downloads · 30 days
37
59% of all-time downloads
All-time downloads
63
Public
Repo size
664 MB
Likes
0
Public
Click a slice to open those files.
.pt664 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of classla/bcms-bertic for binary hate speech classification in Croatian.
| Metric | Score |
|---|---|
| Accuracy | 81.3% |
| F1-Macro | 0.810 |
| F1-Weighted | 0.813 |
| MCC | 0.621 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| ACC (Acceptable) | 0.777 | 0.803 | 0.790 |
| OFF (Offensive) | 0.842 | 0.820 | 0.831 |
from src.models.bertic import BERTicTrainer
# Load model
trainer = BERTicTrainer()
trainer.load("path/to/model")
# Predict
texts = ["Ovo je normalan komentar.", "Svi su oni lopovi!"]
predictions = trainer.predict(texts)
print(predictions) # ['ACC', 'OFF']
ACC - Acceptable: No offensive contentOFF - Offensive: Contains hate speech, insults, or inappropriate content@misc{croatian-hate-speech-2026,
author = {Jurić, Duje and Matošević, Teo and Radolović, Teo},
title = {Detection of Hate Speech on Croatian Online Portals Using NLP Methods},
year = {2026},
publisher = {University of Zagreb, FER},
url = {https://github.com/TeoMatosevic/slur-analysis-model}
}
University of Zagreb, Faculty of Electrical Engineering and Computing
MIT License