Hate-speech-CNERG/hatexplain
Updated • 1.39k • 23
How to use uboza10300/finetuned-distilbert-hatexplainV2 with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("text-classification", model="uboza10300/finetuned-distilbert-hatexplainV2") # Load model directly
from transformers import AutoTokenizer, AutoModelForSequenceClassification
tokenizer = AutoTokenizer.from_pretrained("uboza10300/finetuned-distilbert-hatexplainV2")
model = AutoModelForSequenceClassification.from_pretrained("uboza10300/finetuned-distilbert-hatexplainV2", device_map="auto")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.723 | 1.0 | 962 | 0.7320 | 0.6826 | 0.6766 | 0.6826 | 0.6703 |
| 0.6337 | 2.0 | 1924 | 0.7344 | 0.6857 | 0.6847 | 0.6857 | 0.6852 |
| 0.3821 | 3.0 | 2886 | 0.9051 | 0.6722 | 0.6885 | 0.6722 | 0.6759 |
| 0.1811 | 4.0 | 3848 | 1.1789 | 0.6743 | 0.6787 | 0.6743 | 0.6759 |
Base model
distilbert/distilbert-base-uncased