Publication | Open Access
How to train your stochastic parrot: large language models for political texts
26
Citations
29
References
2025
Year
EngineeringPolitical PolarizationTopic ModelingLarge Language ModelSocial SciencesLanguage ProcessingText MiningLarge Language ModelsNatural Language ProcessingData ScienceComputational LinguisticsPolitical CommunicationMachine TranslationLarge Ai ModelPolitical TextsDocument ScalingNlp TaskLanguage TechnologyStochastic ParrotLinguisticsPolitical Science
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.
| Year | Citations | |
|---|---|---|
Page 1
Page 1