Scripts to fit and explore word embedding models augmented with political metadata.
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.
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}
}