arrow
Return

Generalized word shift graphs: a method for visualizing and explaining pairwise comparisons between texts

delete2021-01-19
delete40
delete
OA
AI
R
Ryan J. Gallagher *
M
Morgan R. Frank
L
Lewis Mitchell
A
Aaron J. Schwartz
A
Andrew J. Reagan
C
Christopher M. Danforth
P
Peter Sheridan Dodds
DOI:10.1140/epjds/s13688-021-00260-3delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
A common task in computational text analyses is to quantify how two corpora differ according to a measurement like word frequency, sentiment, or information content. However, collapsing the texts' rich stories into a single number is often conceptually perilous, and it is difficult to confidently interpret interesting or unexpected textual patterns without looming concerns about data artifacts or measurement validity. To better capture fine-grained differences between texts, we introduce generalized word shift graphs, visualizations which yield a meaningful and interpretable summary of how individual words contribute to the variation between two texts for any measure that can be formulated as a weighted average. We show that this framework naturally encompasses many of the most commonly used approaches for comparing texts, including relative frequencies, dictionary scores, and entropy-based measures like the Kullback-Leibler and Jensen-Shannon divergences. Through a diverse set of case studies ranging from presidential speeches to tweets posted in urban green spaces, we demonstrate how generalized word shift graphs can be flexibly applied across domains for diagnostic investigation, hypothesis generation, and substantive interpretation. By providing a detailed lens into textual shifts between corpora, generalized word shift graphs help computational social scientists, digital humanists, and other text analysis practitioners fashion more robust scientific narratives.
Keywords:
Text as data
Data visualization
Word shift graphs
Sentiment analysis
Computational social science
Digital humanities
Natural language processing
Information theory

Journal

EPJ Data Science cover
EPJ Data Science
IF:
2.5
Papers:
686
Citations:
1.6K

Organization

U
University of Adelaide
Scholars:
2.3W
Papers: 2.4W
Citations: 4.2W
University of Colorado System cover
University of Colorado System
Scholars:
6.3W
Papers: 5.5W
Citations: 1.8K
S
Stanford University
Scholars:
9.6W
Papers: 8.2W
Citations: 17.0W
N
Northeastern University
Scholars:
2.4W
Papers: 1.5W
Citations: 3.0W
P
pennsylvania commonwealth system of higher education (pcshe)
Scholars:
12.9W
Papers: 11.7W
Citations: 177
researcher View more organizations