Papers › Text-Based Ideal Points

Text-Based Ideal Points

8 May 2020ACL 2020 6arXiv:2005.04232archive 2025-07-28

Keyon Vafa, Suresh Naidu, David M. Blei

Ideal point models analyze lawmakers' votes to quantify their political positions, or ideal points. But votes are not the only way to express a political position. Lawmakers also give speeches, release press statements, and post tweets. In this paper, we introduce the text-based ideal point model (TBIP), an unsupervised probabilistic topic model that analyzes texts to quantify the political positions of its authors. We demonstrate the TBIP with two types of politicized text data: U.S. Senate speeches and senator tweets. Though the model does not analyze their votes or political affiliations, the TBIP separates lawmakers by party, learns interpretable politicized topics, and infers ideal points close to the classical vote-based ideal points. One benefit of analyzing texts, as opposed to votes, is that the TBIP can estimate ideal points of anyone who authors political texts, including non-voting actors. To this end, we use it to study tweets from the 2020 Democratic presidential candidates. Using only the texts of their tweets, it identifies them along an interpretable progressive-to-moderate spectrum.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2005.04232")

Code

Syntology Ran 0 of 16 code samples harvested from 1 repository linked to this paper; 16 have no recorded run.

By repository: official repository: 16 samples from 1 repository, 0 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

keyonvafa/tbip officialmentioned in papermentioned on GitHubtfMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 0 ran; 0 honoured the contract we drafted; 16 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

16unverified

Licence: 0 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from keyonvafa/tbip. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

build_input_pipeline keyonvafa/tbip/tbip.py official repository unverified MIT (permissive) · 28d90e257f731884 · report
build_input_pipeline keyonvafa/tbip/tbip_with_gamma.py official repository unverified MIT (permissive) · fba3ebe632a7e3f6 · report
build_input_pipeline keyonvafa/tbip/model_comparison/wordfish.py official repository unverified MIT (permissive) · 27f0e8c4faf5c8b8 · report
build_input_pipeline keyonvafa/tbip/model_comparison/wordshoal.py official repository unverified MIT (permissive) · b4d205244112bc46 · report
build_lognormal_variational_parameters keyonvafa/tbip/tbip.py official repository unverified MIT (permissive) · 2665a9632c177468 · report
load_tbip_parameters keyonvafa/tbip/analysis/analysis_utils.py official repository unverified MIT (permissive) · f6ee747b5d58b1d4 · report
load_text_data keyonvafa/tbip/analysis/analysis_utils.py official repository unverified MIT (permissive) · ff0ead68a2b53eef · report
load_vote_data keyonvafa/tbip/analysis/analysis_utils.py official repository unverified MIT (permissive) · 8b0089dbde346de5 · report
print_ideal_points keyonvafa/tbip/tbip_with_gamma.py official repository unverified MIT (permissive) · 6f0a02b3896ed08d · report
print_polarities keyonvafa/tbip/model_comparison/wordfish.py official repository unverified MIT (permissive) · 0bf4d20e073ea024 · report
print_polarities keyonvafa/tbip/model_comparison/wordshoal.py official repository unverified MIT (permissive) · c5135efa6ed5cc1e · report
print_topics keyonvafa/tbip/tbip.py official repository unverified MIT (permissive) · 6e01dac2264070fb · report
print_topics keyonvafa/tbip/tbip_with_gamma.py official repository unverified MIT (permissive) · dd1b6ed6959cb67f · report
print_topics keyonvafa/tbip/pytorch/tbip.py official repository unverified MIT (permissive) · 61a4ee8a882a522e · report
standardize keyonvafa/tbip/model_comparison/wordfish.py official repository unverified MIT (permissive) · 4b456450e27b5ac7 · report
standardize keyonvafa/tbip/analysis/make_figures.py official repository unverified MIT (permissive) · 700d962137ee7a91 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections