Code Monkey home page Code Monkey logo

gwstance's Introduction

Detecting Stance in Media on Global warming

This repository contains code and data for the paper:

Luo, Y., Card, D. and Jurafsky, D. (2020). Detecting Stance in Media on Global Warming. In Findings of the Association for Computational Linguistics: EMNLP 2020.

BibTex TBA

Getting started

  1. Create and activate a Python 3.6 environment.
  2. Run pip install -r requirements.txt.
  3. Re-install neuralcoref with the --no-binary option:
pip uninstall neuralcoref
pip install neuralcoref --no-binary neuralcoref
  1. Download SpaCy's English model: python -m spacy download en
  2. Update the config.json file with your local OS variables.

Repository structure

  • Our dataset GWSD itself can be accessed via GWSD.tsv in the main directory. The dataset contains tab-separated fields for each of the following:
    1. sentence: the sentence
    2. worker_0, ..., worker_7: ratings from each of the 8 workers for the stance of the sentence
    3. disagree: the probability that the sentence expresses disagreement with the target (that climate change/global warming is a serious concern), as estimated by our Bayesian model
    4. agree: ditto for the "agrees" label
    5. neutral: ditto for the "neutral" label
    6. guid: a unique ID for each sentence
    7. in_held_out_test: whether the sentence was used in our held-out-test set for model and baseline evaluation

Note: The first 5 rows are the 5 screen sentences we use to make sure that annotators correctly understand the task, and thus do not have estimated probability distributions.

  • Our lexicons of framing devices are located in 4_analyses/lexicons.
  • The sequence of code to replicate our results can be found in the individual READMEs of the numbered sub-directories.

gwstance's People

Contributors

yiweiluo avatar

Watchers

James Cloos 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.