Coder Social home page Coder Social logo

thomassedlmeyr / nlp_project_on_tweets_of_german_politicians Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 449.66 MB

Big5 personality traits analysis of German politicians using the latest methods of natural language processing

Home Page: https://www.youtube.com/watch?v=mL7wLmq8KKk

Python 100.00%
twitter

nlp_project_on_tweets_of_german_politicians's Introduction

This project is about the analysis of tweets from politicians who are members of the German Bundestag.

If you are interested what we did, watch our YouTube video: https://www.youtube.com/watch?v=mL7wLmq8KKk

As a first step, we created a database containing more than 240k tweets by over 500 German politicians from different parties.

We then trained a Keras model, which uses a political tweet as input and predicts to which party (CDU, LINKE, FDP, GRÜNE, SPD, CSU, AfD) the creator of the tweet belongs to. We reached an accuracy of more than 55% on our dataset using this model.

In another step we carried out an automated Big5 personality traits analysis of the politicians. For that purpose we first trained a BERT model on the essays dataset by Pennebaker and King, which we then used to evaluate the personalities of the politicians based on their tweets in our dataset.

Since this dataset is in English and our tweets are in German, we first had to translate them to English. Because these translated texts could contain less information, we had to check if the Big5 analysis is possible on machine translated text. We found out that using google translate for translating the texts even improved the model accuracy. We used this improved model to analyse all the tweets of german politicians we collected and evaluated the results.

nlp_project_on_tweets_of_german_politicians's People

Contributors

thomassedlmeyr avatar philiphaitzer avatar

Watchers

Kostas Georgiou avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.