TY - JOUR
T1 - A frustratingly easy way of extracting political networks from text
AU - Bro, Naim
N1 - Publisher Copyright:
© 2025 Naim Bro. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
PY - 2025/1
Y1 - 2025/1
N2 - This study demonstrates the use of GPT-4 and variants, advanced language models readily accessible to many social scientists, in extracting political networks from text. This approach showcases the novel integration of GPT-4’s capabilities in entity recognition, relation extraction, entity linking, and sentiment analysis into a single cohesive process. Based on a corpus of 1009 Chilean political news articles, the study validates the graph extraction method using ‘legislative agreement’, i.e., the proportion of times two politicians vote the same way. It finds that sentiments identified by GPT-4 align with how frequently parliamentarians vote together in roll calls. Comprising two parts, the first involves a linear regression analysis indicating that negative relationships predicted by GPT-4 correspond with reduced legislative agreement between two parliamentarians. The second part employs node embeddings to analyze the impact of network distance, considering both with and without sentiment, on legislative agreements. This analysis reveals a notably stronger predictive power when sentiments are included. The findings underscore GPT-4’s versatility in political network analysis.
AB - This study demonstrates the use of GPT-4 and variants, advanced language models readily accessible to many social scientists, in extracting political networks from text. This approach showcases the novel integration of GPT-4’s capabilities in entity recognition, relation extraction, entity linking, and sentiment analysis into a single cohesive process. Based on a corpus of 1009 Chilean political news articles, the study validates the graph extraction method using ‘legislative agreement’, i.e., the proportion of times two politicians vote the same way. It finds that sentiments identified by GPT-4 align with how frequently parliamentarians vote together in roll calls. Comprising two parts, the first involves a linear regression analysis indicating that negative relationships predicted by GPT-4 correspond with reduced legislative agreement between two parliamentarians. The second part employs node embeddings to analyze the impact of network distance, considering both with and without sentiment, on legislative agreements. This analysis reveals a notably stronger predictive power when sentiments are included. The findings underscore GPT-4’s versatility in political network analysis.
UR - http://www.scopus.com/inward/record.url?scp=85216306848&partnerID=8YFLogxK
U2 - 10.1371/journal.pone.0313149
DO - 10.1371/journal.pone.0313149
M3 - Article
AN - SCOPUS:85216306848
SN - 1932-6203
VL - 20
JO - PLoS ONE
JF - PLoS ONE
IS - 1 January
M1 - e0313149
ER -