Hostname: page-component-74656f9884-2dmjx Total loading time: 0 Render date: 2026-11-07T10:37:56.077Z Has data issue: false hasContentIssue false

Corpus-based dictionaries for sentiment analysis of specialized vocabularies

Published online by Cambridge University Press:  02 April 2019

Douglas R. Rice*
Affiliation:
Department of Political Science, University of Massachusetts, Amherst, Massachusetts, United States
Christopher Zorn
Affiliation:
Department of Political Science, Pennsylvania State University, University Park, Pennsylvania United States
*
*Corresponding author. Email: drrice@umass.edu
Rights & Permissions [Opens in a new window]

Abstract

Contemporary dictionary-based approaches to sentiment analysis exhibit serious validity problems when applied to specialized vocabularies, but human-coded dictionaries for such applications are often labor-intensive and inefficient to develop. We demonstrate the validity of “minimally-supervised” approaches for the creation of a sentiment dictionary from a corpus of text drawn from a specialized vocabulary. We demonstrate the validity of this approach in estimating sentiment from texts in a large-scale benchmarking dataset recently introduced in computational linguistics, and demonstrate the improvements in accuracy of our approach over well-known standard (nonspecialized) sentiment dictionaries. Finally, we show the usefulness of our approach in an application to the specialized language used in US federal appellate court decisions.

Information

Type
Original Article
Copyright
Copyright © The European Political Science Association 2019
Figure 0

Figure 1. Accuracy of Classifiers. This compares three different approaches to measuring polarity against the assigned (“true”) classifications. The left-hand panel compares estimates derived from the LIWC dictionary, the middle panel estimates from the AFINN dictionary, and the right panel estimates from our corpus-based dictionary The top row indicates cases within the sample used for training the word vector representations, whereas the bottom row indicates accuracy on held-out cases.

Figure 1

Figure 2. Robustness To Differences in Corpus Size. Plot of the accuracy (y-axis) of our polarity approach across variation in the corpus size (x-axis).

Figure 2

Table 1. Accuracy of Machine Learning Classifiers and Our Polarity Approach

Figure 3

Figure 3. Average polarity of majority opinions across different values of dissenting votes for different eras of the Court's history. Plot of mean opinion polarity (y-axis) by number of dissenting votes (x-axis) calculated using our approach (solid black line), the Linguistic Inquiry and Word Count dictionary (long dashed gray line), and the AFINN dictionary (short dashed gray line).

Figure 4

Figure 4. Over Time Difference in Polarity Estimates The above plots the absolute difference in justice-level polarity averages between common dictionary approaches and our estimate (y-axis) against the justice's term of arrival to the Court (x-axis). Black line represents local polynomial fit with associated 95% confidence interval in gray.

Figure 5

Figure 5. Major Differences in Polarity Estimates The above plots the five most positive and five most negative changes in justice-level polarity averages between common dictionary approaches (indicated by black dots) and our estimate (indicated by point of arrow).

Supplementary material: Link

Rice and Zorn Dataset

Link
Supplementary material: PDF

Rice and Zorn supplementary material

Rice and Zorn supplementary material 1

Download Rice and Zorn supplementary material(PDF)
PDF 165.2 KB