Giter VIP home page Giter VIP logo

sentiment_covid-19's Introduction

Global evidence of expressed sentiment alterations during the COVID-19 pandemic

Replication materials for J Wang#, Y Fan#, J Palacios, Y Chai, N Jeanrenaud, N Obradovich, C Zhou*, S Zheng* (2021).

The materials in this repository allow users to reproduce the data analysis and figures appearing in the paper.

If you have questions or suggestions, please contact Jianghao Wang at [email protected] | [email protected]

Computational requirement

  • R 4.0+
  • Python 3.7-3.9
  • Stata 14.0+

Organization of repository

  • input: all the necessary input data
  • figures: the main text final figures
  • script:
    • 01_sentiment/ : sentiment imputation, see the repository: https://github.com/MIT-SUL-Team/global-sentiment
      • data: the traning and labeled_data for the global sentiment imputation
      • dict/sentiment_dicts: the emoji, hedonometer, and LIWC dictionaries
      • models: the multilingual data for the sentiment
      • notebooks: sentiment clf evaluator.ipynb
      • output
      • report
      • src: main model and sentiment imputation folders
        • main_geography_imputer.py
        • main_sentiment_aggregator.py
        • main_sentiment_imputer.py
        • setup_emb_clf.py
        • setup_liwc.py
        • utils: functions used for the sentiment imputation
          • aggregation_utils.py
          • data_read_in.py
          • dict_sentiment_imputer.py
          • emb_clf_setup_utils.py
          • emb_sentiment_imputer.py
    • 02_visual/: exploration analysis, see details in figures.
    • 03_sentiment_recovery/: This section reproduce the result of Expressed sentiment alterations during COVID-19 pandemic: the first measure--recovery half-life.
    • 04_sentiment_shock_and_lockdown_effect/: This section reproduce the result of Expressed sentiment alterations during COVID-19 pandemic: the second measure--sentiment drop and the results of Impacts of lockdowns on expressed sentiment

sentiment_covid-19's People

Contributors

jianghao 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.