Lexicons for Sentiment, Affect, and Connotation
Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 23
2 cards in “23.6 Using lexicons for sentiment recognition” · whole deck
23.6 Using lexicons for sentiment recognition
- When are lexicons useful for sentiment classification, and what is the simplest rule-based method?When there is not enough labeled training data. Count (optionally weighted) positive and negative lexicon words, \(f^+\) and \(f^-\): classify positive if \(f^+/f^- > \lambda\), negative if \(f^-/f^+ > \lambda\), otherwise neutral.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 23, §23.6, p. 533
- How are lexicons used when supervised training data is available?Lexicon counts (weighted or normalized) become features in a classifier alongside other lexical and non-lexical features.
- Jurafsky & Martin, Speech and Language Processing, 3rd ed. draft, ch. 23, §23.6, p. 533
Source
- Daniel Jurafsky and James H. Martin. Speech and Language Processing. 3rd edition (draft). https://web.stanford.edu/~jurafsky/slp3/