Downloads · 30 days
15
22% of all-time downloads
JacobSKN/german-irony-detector
german-irony-detector is a text classification model from JacobSKN. Use it when you need a label for a piece of text. The card lists the license as cc-by-nc-nd-4.0.
This model detects irony in German text using a fine-tuned BERT architecture. It builds upon the German sentiment analysis work by Guhr et al. (2020) and incorporates tuning procedures from Lüdke et al. (2021).
Downloads · 30 days
15
22% of all-time downloads
All-time downloads
67
Public
Parameters
109M
873 MB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors436 MB · 100%
From the Hugging Face model README
This model detects irony in German text using a fine-tuned BERT architecture. It builds upon the German sentiment analysis work by Guhr et al. (2020) and incorporates tuning procedures from Lüdke et al. (2021).
| Metric | Mean | Std Dev |
|---|---|---|
| Accuracy | 0.9651 | 0.0154 |
| Precision | 0.9731 | 0.0117 |
| Recall | 0.9632 | 0.0198 |
| F1-Score | 0.9681 | 0.0141 |
| Class | Precision | Recall | F1-Score |
|---|---|---|---|
| Not Ironic | 0.8000 | 0.9600 | 0.8727 |
| Ironic | 0.9500 | 0.7600 | 0.8444 |
from transformers import AutoModelForSequenceClassification, AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained("username/german-irony-detector")
model = AutoModelForSequenceClassification.from_pretrained("username/german-irony-detector")
def predict(text):
inputs = tokenizer(text, return_tensors="pt", truncation=True, max_length=512)
outputs = model(**inputs)
probabilities = outputs.logits.softmax(dim=-1)
return probabilities
The model was trained on:
For detailed documentation, additional resources, and the full research context, please visit my GitHub repository: https://github.com/JacobSKN/german-irony-detector
@misc{guhr2020german,
title={German Sentiment Analysis},
author={Guhr, Oliver and et al.},
year={2020},
howpublished={\url{https://github.com/oliverguhr/german-sentiment-lib}}
}
@misc{schmidt2023german,
title={German Irony Dataset},
author={Schmidt and Harbusch},
year={2023}
}
Jacob Schildknecht ([email protected])
For questions or feedback about this model, please contact: [email protected]