Text Classification
Transformers
PyTorch
Safetensors
German
electra
hate-speech-detection
hate-speech
Instructions to use jagoldz/gahd with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jagoldz/gahd with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="jagoldz/gahd")# Load model directly from transformers import AutoTokenizer, AutoModelForSequenceClassification tokenizer = AutoTokenizer.from_pretrained("jagoldz/gahd") model = AutoModelForSequenceClassification.from_pretrained("jagoldz/gahd", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -28,15 +28,25 @@ Please check out our [paper](https://arxiv.org/abs/2403.19559) for further detai
|
|
| 28 |
|
| 29 |
## Citation
|
| 30 |
|
| 31 |
-
When using this model or the GAHD dataset, please cite our
|
| 32 |
|
| 33 |
```
|
| 34 |
-
@
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 41 |
}
|
| 42 |
```
|
|
|
|
| 28 |
|
| 29 |
## Citation
|
| 30 |
|
| 31 |
+
When using this model or the GAHD dataset, please cite our paper:
|
| 32 |
|
| 33 |
```
|
| 34 |
+
@inproceedings{goldzycher-etal-2024-improving,
|
| 35 |
+
title = "Improving Adversarial Data Collection by Supporting Annotators: Lessons from {GAHD}, a {G}erman Hate Speech Dataset",
|
| 36 |
+
author = {Goldzycher, Janis and
|
| 37 |
+
R{\"o}ttger, Paul and
|
| 38 |
+
Schneider, Gerold},
|
| 39 |
+
editor = "Duh, Kevin and
|
| 40 |
+
Gomez, Helena and
|
| 41 |
+
Bethard, Steven",
|
| 42 |
+
booktitle = "Proceedings of the 2024 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies (Volume 1: Long Papers)",
|
| 43 |
+
month = jun,
|
| 44 |
+
year = "2024",
|
| 45 |
+
address = "Mexico City, Mexico",
|
| 46 |
+
publisher = "Association for Computational Linguistics",
|
| 47 |
+
url = "https://aclanthology.org/2024.naacl-long.248",
|
| 48 |
+
doi = "10.18653/v1/2024.naacl-long.248",
|
| 49 |
+
pages = "4405--4424",
|
| 50 |
+
abstract = "Hate speech detection models are only as good as the data they are trained on. Datasets sourced from social media suffer from systematic gaps and biases, leading to unreliable models with simplistic decision boundaries. Adversarial datasets, collected by exploiting model weaknesses, promise to fix this problem. However, adversarial data collection can be slow and costly, and individual annotators have limited creativity. In this paper, we introduce GAHD, a new German Adversarial Hate speech Dataset comprising ca. 11k examples. During data collection, we explore new strategies for supporting annotators, to create more diverse adversarial examples more efficiently and provide a manual analysis of annotator disagreements for each strategy. Our experiments show that the resulting dataset is challenging even for state-of-the-art hate speech detection models, and that training on GAHD clearly improves model robustness. Further, we find that mixing multiple support strategies is most advantageous. We make GAHD publicly available at https://github.com/jagol/gahd.",
|
| 51 |
}
|
| 52 |
```
|