Skip to content

Scripts to fit and explore word embedding models augmented with political metadata.

Notifications You must be signed in to change notification settings

EtienneGagnon1/partyembed

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

partyembed

Scripts to fit and explore word embedding models augmented with political metadata.

Description

This is a release of materials for the study cited below. We will post developments on this page as time permits.

To download the pre-trained models, use this link. Additional information can be found on the Harvard Dataverse.

Make sure to extract the model files in the 'models' directory, i.e.:

tar xvzf partyembed_models.tar.gz -C partyembed/partyembed/models

The scripts are organized as a Python module, and functionalities will be added in this version. Consult the file examples.ipynb for a tutorial.

The src/ directory contains example scripts to process the raw corpora and fit augmented embedding models on political texts.

Citation

Please cite the following paper if using these materials:

Ludovic Rheault and Christopher Cochrane. Forthcoming. Word Embeddings for the Analysis of Ideological Placement in Parliamentary Corpora. Political Analysis.

@article{RHE19,
  author    = {Ludovic Rheault and Christopher Cochrane},
  title     = {Word Embeddings for the Analysis of Ideological Placement in Parliamentary Corpora},
  journal   = {Political Analysis},
  year      = {2019}  
}

About

Scripts to fit and explore word embedding models augmented with political metadata.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 94.3%
  • Python 5.7%