Coder Social home page Coder Social logo

saqr98 / data-society Goto Github PK

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

Project repository for the Data & Society seminar WS2023/2024. Project: Using Network Analysis and News Sentiment to quantify Geopolitical Changes

Python 25.54% Jupyter Notebook 74.46%

data-society's Introduction

Using Network Analysis and News Sentiment to quantify Geopolitical Changes

Abstract

In this study to explore shifts in international relations from 2015 to 2023, we employed network analysis and global news article sentiment, leveraging the Global Database of Events, Language, and Tone (GDELT) in conjunction with the World Press Freedom Index. We investigated the reciprocity of countries, focusing on the United States and China’s role in the global international order and observe a modestly declining global political centrality of the United States juxtaposed with China’s rising influence, underscoring a potential shift towards a multipolar global order. Additionally, we studied the impact of significant political events on international relations, event-related polarization in global news coverage and regional differences in media sentiment at the hand of the Russian-Ukrainian conflict that started on February 24th, 2022, revealing regional variability pertinent to the war. Our research underscores the utility of digital news archives in understanding global political dynamics and provides suggestions for further exploration into the intricacies of global news media and politics.

Installation

How to reproduce the results

  1. Clone the repository
  2. Navigate to its root folder
  3. Create new virtual environment with Python 3.10:
# create
python3.10 -m venv .venv

# activate
source .venv/bin/activate

# check: output should point to previously created venv
which python
  1. Install all packages from requirements file:
pip install -r ./requirements.txt 
  1. Download and place raw datasets in the following directory: ./Code/data/raw/
  2. Change your working directory:
cd ./Code/src
  1. Make sure that virtual environment is activated and run python main.py. This should generate nodes and edges for static and dynamic networks for years from 2015 to 2023. Additionally, in Code/data/out/analysis/ folder you will find all graphs from the report. On a laptop with 16GB of RAM, the running time is around 20 minutes.

data-society's People

Contributors

molotkova avatar saqr98 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.