SkillAgentSearch skills...

Partyembed

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

Install / Use

/learn @lrheault/Partyembed
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

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}
}
View on GitHub
GitHub Stars26
CategoryDevelopment
Updated3mo ago
Forks9

Languages

Jupyter Notebook

Security Score

72/100

Audited on Dec 3, 2025

No findings