Downloads · 30 days
9
6% of all-time downloads
slvnwhrl/gbert-face-mask-sentiment
gbert-face-mask-sentiment is a text classification model from slvnwhrl. Use it when you need a label for a piece of text. It is set up for transformers. The card lists the license as mit.
This model can be used for sentiment analysis of German tweets discussing the use of masks (in the context of the COVID-19 pandemic).
Downloads · 30 days
9
6% of all-time downloads
All-time downloads
150
Public
Parameters
110M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors440 MB · 100%
From the Hugging Face model README
This model can be used for sentiment analysis of German tweets discussing the use of masks (in the context of the COVID-19 pandemic).
The model achieves a weighted F1-score of 82.36%.
If you would like to use the model, you can load it with the Transformers librabry:
from transformers import pipeline
model_path = "slvnwhrl/gbert-mask-sentiment"
gbert_mask = pipeline("sentiment-analysis", model=model_path, tokenizer=model_path)
gbert_mask("insert some text in German") # ready to roll
If you use this model in your research, please cite the paper using:
@inproceedings{wehrli-etal-2024-guiding,
title = "Guiding Sentiment Analysis with Hierarchical Text Clustering: Analyzing the {G}erman {X}/{T}witter Discourse on Face Masks in the 2020 {COVID}-19 Pandemic",
author = "Wehrli, Silvan and
Ezekannagha, Chisom and
Hattab, Georges and
Boender, Tamara and
Arnrich, Bert and
Irrgang, Christopher",
editor = "De Clercq, Orph{\'e}e and
Barriere, Valentin and
Barnes, Jeremy and
Klinger, Roman and
Sedoc, Jo{\~a}o and
Tafreshi, Shabnam",
booktitle = "Proceedings of the 14th Workshop on Computational Approaches to Subjectivity, Sentiment, {\&} Social Media Analysis",
month = aug,
year = "2024",
address = "Bangkok, Thailand",
publisher = "Association for Computational Linguistics",
url = "https://aclanthology.org/2024.wassa-1.13",
pages = "153--167",
abstract = "Social media are a critical component of the information ecosystem during public health crises. Understanding the public discourse is essential for effective communication and misinformation mitigation. Computational methods can aid these efforts through online social listening. We combined hierarchical text clustering and sentiment analysis to examine the face mask-wearing discourse in Germany during the COVID-19 pandemic using a dataset of 353,420 German X (formerly Twitter) posts from 2020. For sentiment analysis, we annotated a subsample of the data to train a neural network for classifying the sentiments of posts (neutral, negative, or positive). In combination with clustering, this approach uncovered sentiment patterns of different topics and their subtopics, reflecting the online public response to mask mandates in Germany. We show that our approach can be used to examine long-term narratives and sentiment dynamics and to identify specific topics that explain peaks of interest in the social media discourse.",
}