Lexicons for Sentiment, Affect, and Connotation
Understanding the emotional and subjective nuances of language is crucial for many applications, from sentiment analysis to understanding the subtle connotations behind words. Lexicons play a vital role in helping computers interpret and analyze these aspects of language.
What are Sentiment and Affect Lexicons?
At their core, sentiment and affect lexicons are dictionaries or lists of words that have been assigned scores or labels indicating their emotional tone or subjective meaning. These lexicons are instrumental in enabling computers to "understand" the emotional content of text.
Types of Sentiment Lexicons
The simplest sentiment lexicons classify words as either positive or negative. Here are a few well-known examples:
- General Inquirer: One of the oldest, containing lists of positive and negative words based on content analysis.
- MPQA Subjectivity Lexicon: Includes positive and negative words, along with labels for reliability (strong or weak subjectivity).
- Hu and Liu's Polarity Lexicon: A lexicon created from product reviews, with words labeled using a bootstrapping method from WordNet.
Examples of Sentiment Words:
| Positive | Negative |
|---|---|
| admire, amazing, assure, celebration, charm, eager | abominable, anger, anxious, bad, catastrophe, cheap |
| enthusiastic, excellent, fancy, fantastic, frolic, graceful | complaint, condescending, deceit, defective, disappointment, embarrass |
Beyond Simple Sentiment: Valence, Arousal, and Dominance (VAD)
Some lexicons go beyond simple positive/negative classification and assign words values along multiple affective dimensions:
- Valence: The pleasantness of a word.
- Arousal: The intensity of the emotion.
- Dominance: The degree of control associated with the word.
Example of VAD values
| Word | Valence | Arousal | Dominance |
|---|---|---|---|
| vacation | 0.840 | 0.962 | 0.991 |
| torture | 0.115 | 0.046 | 0.045 |
Emotion-Specific Lexicons
Other lexicons focus on specific emotions. The NRC Word-Emotion Association Lexicon (EmoLex) is an example of a lexicon utilizing Plutchik’s (1980) 8 basic emotions.
Example from EmoLex
| Word | anger | anticipation | disgust | fear | joy | sadness | surprise | trust | positive | negative |
|---|---|---|---|---|---|---|---|---|---|---|
| reward | 0 | 1 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 |
| garbage | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 1 |
Linguistic Inquiry and Word Count (LIWC)
LIWC is a comprehensive set of lexicons designed for social psychological tasks. It includes categories like:
- Positive and negative emotion
- Anger, sadness
- Cognitive mechanisms
- Perception
- Tentative
- Inhibition
Concrete vs. Abstract Words
It's often helpful to distinguish between concrete words (e.g., "banana," "bathrobe") and abstract words (e.g., "belief," "although"). Lexicons like the one from Brysbaert et al. (2014) provide ratings for the concreteness of words.
Creating Affect Lexicons
There are a few different methods used to create affect lexicons
Human Labeling (Crowdsourcing)
One of the most common methods for building affect lexicons is to have humans label each word, often using crowdsourcing.
When labeling, annotators may be presented with synonym questions to prime the correct sense of the word. Associations are typically rated on a scale (e.g., not, weakly, moderately, strongly associated). Outliers are removed, and the majority class is assigned to each term.
Another approach is called Best-Worst Scaling. Annotators are given a set of words and asked to identify the "best" (highest) and "worst" (lowest) in terms of a specific property (e.g., valence, arousal, dominance). Agreement is evaluated through split-half reliability.
Semi-Supervised Induction of Affect Lexicons
This approach starts with a small set of "seed" words (e.g., "good," "bad") and then expands the lexicon by finding words that are similar to the seed words.
Semantic Axis Methods
One popular method involves computing a "semantic axis." Here's how it works:
- Choose seed words: Select positive and negative seed words.
- Compute embeddings: Obtain word embeddings for each seed word.
- Create pole centroids: Calculate the centroid of the positive and negative seed word embeddings.
- Define semantic axis: Subtract the negative centroid from the positive centroid.
- Score words: Calculate the cosine similarity between a word's embedding and the semantic axis.
Label Propagation
This method uses graphs to propagate sentiment labels. The steps are as follows:
- Define a graph: Build a weighted lexical graph connecting words based on cosine similarity.
- Define a seed set: Choose positive and negative seed words.
- Propagate polarities: Perform a random walk on the graph, starting at the seed set.
- Create word scores: Combine positive and negative scores to create a final polarity score.
- Assign confidence: Use bootstrap sampling to estimate the reliability of the scores.
Other Similarity Metrics
Besides embedding cosine, other similarity metrics include:
- Syntactic cues: Adjectives conjoined by "and" tend to have the same polarity.
- Morphological negation: Words with prefixes like "un-" or "im-" often have opposite polarity.
- Thesaurus-based methods: Synonyms share polarity, while antonyms have opposite polarity.
Supervised Learning of Word Sentiment
The web contains an enormous number of online reviews for restaurants, movies, books, or other products, each of which have the text of the review along with an associated review score: a value that may range from 1 star to 5 stars, or scoring 1 to 10.
Log Odds Ratio Informative Dirichlet Prior
In this section we walk through the details of one solution to this problem: the “log odds ratio informative Dirichlet prior” method that is a particularly useful method for finding words that are statistically overrepresented in one particular category of texts compared to another. It’s based on the idea of using another large corpus to get a prior estimate of what we expect the frequency of each word to be.
Using Lexicons for Sentiment and Affect Recognition
Lexicons can be used in a variety of ways to improve sentiment and affect detection.
Rule-Based Classification
When you don't have enough training data for supervised learning, you can use lexicons to create a rule-based classifier. This involves calculating the ratio of positive to negative words in a document and classifying it based on a threshold.
Features in Supervised Classifiers
Lexicon-based counts can also be used as features in supervised classifiers, along with other lexical or non-lexical features.
Conclusion
Lexicons are essential tools for understanding the emotional and subjective aspects of language. Whether they're created by hand, automatically, or through a combination of methods, they provide valuable insights for a wide range of natural language processing applications.
Comments
Post a Comment