Giter Site home page Giter Site logo

aandyrea / master-thesis Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 4.13 MB

This repository contains code needed to replicate the master thesis study, "Refugees Welcome? A comparative sentiment analysis of tweets in Germany surrounding inflows of Syrians and Ukrainians", by Andrea Cass

Jupyter Notebook 100.00%
polarity refugees refugees-welcome sentiment-analysis sentiment-classification attitudes data-collection germany immigrants immigration

master-thesis's Introduction

Master-thesis

GitHub last commit Open Source Love GitHub commit activity

Overview

This file explains the steps to reproduce the research carried out for my Master Thesis, titled "Refugees Welcome? A comparative sentiment analysis of tweets in Germany surrounding inflows of Syrians and Ukrainians".

The project aims to collect and analyze immigration-related tweets published in Germany in English and German during two time frames:

  1. The Syrian refugee inflow
  2. The Ukrainian refugee inflow

All steps are documented in the Notebooks:

  • 01_Data-Collection_limited_Syrian.ipynb
  • 01_Data-Collection_limited_Ukrainian.ipynb
  • 02_Pre-processing_limited_merged.ipynb
  • 03_Sentiment-Analysis_limited_merged.ipynb
  • 04_Data-Preparation_limited_merged.ipynb
  • 05_Exploration-and-Visualization_limited_merged.ipynb
  • 06_Regression_limited_merged.ipynb

Installation

Please refer to requirements.txt

Technologies

This project was created with:

  • Python 3.9.13

Notebook 03_Sentiment-Analysis_merged.ipynb was carried out in:

  • Google Colab

All other Notebooks were carried out in:

  • JupyterLab 3.4.8

Notebooks

01_Data-Collection_limited_Syrian

The collection of tweets during the first time frame--the Syrian refugee inflow--is documented in this notebook. Both English- and German-language tweets are obtained.

01_Data-Collection_limited_Ukrainian

The collection of tweets during the second time frame--the Ukrainian refugee inflow--is documented in this notebook. Both English- and German-language tweets are obtained.

02_Pre-processing_limited_merged

In this notebook, all collected tweets are pre-processed for sentiment analysis.

03_Sentiment-Analysis_limited_merged

Sentiment analysis is carried out in this notebook. NOTE: This notebook was produced and run in Google Colab. Therefore, it is recommended you run it in Colab rather than Jupyter.

04_Data-Preparation_limited_merged

The data is prepared for exploration and eventual regression in this notebook.

05_Exploration-and-Visualization_limited_merged-negative-binary

Here, the data is explored and visualized.

06_Regression_limited_merged-negative-binary

The final step of the study is carried out in this notebook. A logistic regression is conducted to predict sentiment based on inflow (Syrian or Ukrainian) in addition to two control variables: (1) change in foreign share of the total population and (2) GDP volume growth.

07_Revisions

Several adjustments were made based on the suggestions from my supervisor.

master-thesis's People

Contributors

aandyrea avatar

Watchers

 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.