Hate-speech-CNERG/hatexplain
Updated • 2.91k • 22
How to use uboza10300/distilbert-hatexplain with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="uboza10300/distilbert-hatexplain") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("uboza10300/distilbert-hatexplain")
model = AutoModelForSequenceClassification.from_pretrained("uboza10300/distilbert-hatexplain")This model is a fine-tuned version of distilbert-base-uncased on the hatexplain dataset. It achieves the following results on the evaluation set:
More information needed
More information needed
More information needed
The following hyperparameters were used during training:
| Training Loss | Epoch | Step | Validation Loss | Accuracy | Precision | Recall | F1 |
|---|---|---|---|---|---|---|---|
| 0.6131 | 1.0 | 1923 | 0.7399 | 0.6925 | 0.6877 | 0.6925 | 0.6847 |
| 0.7386 | 2.0 | 3846 | 0.7254 | 0.7040 | 0.7033 | 0.7040 | 0.7036 |
| 0.6471 | 3.0 | 5769 | 0.8259 | 0.7019 | 0.6995 | 0.7019 | 0.7005 |
Base model
distilbert/distilbert-base-uncased