vix.ing · top · new · best · stats

How to train your stochastic parrot: large language models for political texts

2025/01/14 by Joseph T. Ornstein, Elise Blasingame, Jake S. Truscott · 1 voice · 41 citations
Computer Science · Social Sciences · #Computational and Text Analysis Methods #Computer science #Law #Linguistics #Media Influence and Politics #Philosophy #Political science #Politics #Sociology #Topic Modeling

paper · pdf · doi:10.1017/psrm.2024.64

published in Political Science Research and Methods 13(2), 264-281 (Cambridge University Press)

openalex publication_date 2025/01/14 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/05

Abstract

Abstract We demonstrate how few-shot prompts to large language models (LLMs) can be effectively applied to a wide range of text-as-data tasks in political science—including sentiment analysis, document scaling, and topic modeling. In a series of pre-registered analyses, this approach outperforms conventional supervised learning methods without the need for extensive data pre-processing or large sets of labeled training data. Performance is comparable to expert and crowd-coding methods at a fraction of the cost. We propose a set of best practices for adapting these models to social science measurement tasks, and develop an open-source software package for researchers.

Citations

Cited by

Discussions

Related