Direkt zum Inhalt

Schmidt, Thomas ; Fehle, Jakob ; Weissenbacher, Maximilian ; Richter, Jonathan ; Gottschalk, Philipp ; Wolff, Christian

Sentiment Analysis on Twitter for the Major German Parties during the 2021 German Federal Election

Schmidt, Thomas , Fehle, Jakob, Weissenbacher, Maximilian, Richter, Jonathan, Gottschalk, Philipp and Wolff, Christian (2022) Sentiment Analysis on Twitter for the Major German Parties during the 2021 German Federal Election. In: Proceedings of the 18th Conference on Natural Language Processing (KONVENS 2022). KONVENS 2022 Organizers, Potsdam, Germany, pp. 74-87.

Date of publication of this fulltext: 25 Jun 2024 06:53
Book section


Abstract

We present the results of a project performing sentiment analysis on tweets from German politicians and party accounts for the 2021 German federal election. We collected over 58,000 tweets from the Twitter accounts of the seven parties represented in the German Bundestag, of which a selection of 2,000 tweets were annotated by three annotators. Based on the annotated data, we implemented multiple ...

We present the results of a project performing sentiment analysis on tweets from German politicians and party accounts for the 2021 German federal election. We collected over 58,000 tweets from the Twitter accounts of the seven parties represented in the German Bundestag, of which a selection of 2,000 tweets were annotated by three annotators. Based on the annotated data, we implemented multiple sentiment analysis approaches and evaluated the sentiment classification performance. We found that transformer-based models like bidirectional encoder from transformers (BERT) performed better than traditional machine learning models such as Naive Bayes and lexiconbased models like GerVADER. The best performing BERT model achieved an accuracy of 93.3% and macro f1 score of 93.4%. Applying sentiment analysis on the overall corpus via this method showed that overall, negative sentiment was most frequent and that there were multiple major shifts in sentiment a few months before and after the election. Furthermore, we found that tweets from opposition parties had on average more negative sentiment than those from governing parties.



Involved Institutions


Details

Item typeBook section
Journal or Publication TitleProceedings of the 18th Conference on Natural Language Processing (KONVENS 2022)
Title of Book:Proceedings of the 18th Conference on Natural Language Processing (KONVENS 2022)
Publisher:KONVENS 2022 Organizers
Place of Publication:Potsdam, Germany
Page Range:pp. 74-87
Date2022
InstitutionsLanguages and Literatures > Institut für Information und Medien, Sprache und Kultur (I:IMSK) > Lehrstuhl für Medieninformatik (Prof. Dr. Christian Wolff)
Informatics and Data Science > Department Human-Centered Computing > Lehrstuhl für Medieninformatik (Prof. Dr. Christian Wolff)
Related URLs
URLURL Type
https://github.com/lauchblatt/Twitter_German_Federal_Election_2021Supplementary Material
Keywordssentiment analysis, nlp, twitter, politics, deep learning, transformers
Dewey Decimal Classification000 Computer science, information & general works > 004 Computer science
300 Social sciences > 320 Political science
StatusPublished
RefereedYes, this version has been refereed
Created at the University of RegensburgYes
URN of the UB Regensburgurn:nbn:de:bvb:355-epub-582416
Item ID58241

Export bibliographical data

Owner only: item control page

nach oben