Sentiment and structure in word co-occurrence networks on Twitter
arXiv:2110.00587 · doi:10.1007/s41109-022-00446-2
Abstract
We explore the relationship between context and happiness scores in political tweets using word co-occurrence networks, where nodes in the network are the words, and the weight of an edge is the number of tweets in the corpus for which the two connected words co-occur. In particular, we consider tweets with hashtags #imwithher and #crookedhillary, both relating to Hillary Clinton's presidential bid in 2016. We then analyze the network properties in conjunction with the word scores by comparing with null models to separate the effects of the network structure and the score distribution. Neutral words are found to be dominant and most words, regardless of polarity, tend to co-occur with neutral words. We do not observe any score homophily among positive and negative words. However, when we perform network backboning, community detection results in word groupings with meaningful narratives, and the happiness scores of the words in each group correspond to its respective theme. Thus, although we observe no clear relationship between happiness scores and co-occurrence at the node or edge level, a community-centric approach can isolate themes of competing sentiments in a corpus.
References in corpus (10)
- Fast unfolding of communities in large networks
- Power-law distributions in empirical data
- NLTK: The Natural Language Toolkit
- Extracting the multiscale backbone of complex weighted networks
- Unsupervised Learning of Semantic Orientation from a Hundred-Billion-Word Corpus
- Text mixing shapes the anatomy of rank-frequency distributions: A modern Zipfian mechanics for natural language
- Public Opinion Polling with Twitter
- Augmenting semantic lexicons using word embeddings and transfer learning
- Say Their Names: Resurgence in the collective attention toward Black victims of fatal police violence following the death of George Floyd
- Quantifying language changes surrounding mental health on Twitter