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

lrheault/partyembed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

partyembed

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

Description

This is a release of archive materials for the study cited below.

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. The three scripts in that directory illustrate how to replicate the embeddings model for the US House.

Citation

Please cite the following paper if using these materials:

Ludovic Rheault and Christopher Cochrane. 2020. Word Embeddings for the Analysis of Ideological Placement in Parliamentary Corpora. Political Analysis 28(1): 112-133.

@article{RHE20,
  author    = {Ludovic Rheault and Christopher Cochrane},
  title     = {Word Embeddings for the Analysis of Ideological Placement in Parliamentary Corpora},
  journal   = {Political Analysis},
  year      = {2020},
  volume    = {28},
  number    = {1},
  pages     = {112-133}
}

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