affinn
Affinn, often written as AFINN, is a sentiment lexicon used in natural language processing to assign polarity scores to English words and phrases. It provides a mapping from lexical items to integer sentiment scores, which can be summed to yield an overall sentiment score for a piece of text. The lexicon is widely used in simple bag-of-words analyses and as a lightweight baseline in sentiment workflows.
Origin and scope: The lexicon was compiled by Finn Årup Nielsen and has been maintained in several
Usage: To apply AFINN, tokenize the text, look up each token in the lexicon, and sum the
Licensing and availability: AFINN data and accompanying materials are distributed as open data through public repositories.
Limitations and related tools: The approach is context-insensitive and does not resolve negation, sarcasm, or rhetorical
---