Downloads · 30 days
11
2% of all-time downloads
DunnBC22/bert-base-uncased-Hate_Offensive_or_Normal_Speech
bert-base-uncased-Hate_Offensive_or_Normal_Speech is a text classification model from DunnBC22. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as apache-2.0.
This model is a fine-tuned version of bert-base-uncased on the None dataset. It achieves the following results on the evaluation set: - Loss: 0.1750 - Accuracy: 0.9213 - Weighted f1: 0.9196 - Micro f1: 0.9213 - Macro…
Downloads · 30 days
11
2% of all-time downloads
All-time downloads
482
Public
Repo size
1.8 GB
Likes
1
Public
Click a slice to open those files.
.bin438 MB · 100%
From the Hugging Face model README
This model is a fine-tuned version of bert-base-uncased on the None dataset. It achieves the following results on the evaluation set:
For more information on how it was created, check out the following link: https://github.com/DunnBC22/NLP_Projects/blob/main/Multiclass%20Classification/Transformer%20Comparison/Hate%20%26%20Offensive%20Speech%20-%20BERT.ipynb
This project is part of a comparison that included the following models:
This model is intended to demonstrate my ability to solve a complex problem using technology.
The main limitation is the quality of the data source.
Dataset Source: https://www.kaggle.com/datasets/subhajournal/normal-hate-and-offensive-speeches
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Weighted f1 | Micro f1 | Macro f1 | Weighted recall | Micro recall | Macro recall | Weighted precision | Micro precision | Macro precision |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0.8401 | 1.0 | 39 | 0.5510 | 0.6656 | 0.5521 | 0.6656 | 0.5233 | 0.6656 | 0.6656 | 0.6319 | 0.4740 | 0.6656 | 0.4487 |
| 0.3951 | 2.0 | 78 | 0.2724 | 0.8459 | 0.8360 | 0.8459 | 0.8274 | 0.8459 | 0.8459 | 0.8305 | 0.8743 | 0.8459 | 0.8765 |
| 0.21 | 3.0 | 117 | 0.1750 | 0.9213 | 0.9196 | 0.9213 | 0.9161 | 0.9213 | 0.9213 | 0.9144 | 0.9237 | 0.9213 | 0.9241 |
This model is a fine-tuned derivative of a pretrained model. Users must comply with the original model license.
This model was fine-tuned on third-party datasets which may have separate licenses or usage restrictions.