Learn R Programming

sentimentr (version 0.4.0)

polarity_table: Polarity Lookup Key

Description

A data.table dataset containing an augmented version of Hu & Liu's (2004) positive/negative word list as sentiment lookup values.

Usage

data(polarity_table)

Arguments

Format

A data frame with 6872 rows and 2 variables

Details

  • x. Words
  • y. Sentiment values (+1, 0, -1.05, -1, -2), -2 indicate phrasing that is always negative (e.g., 'too much fun' and 'too much evilcomparison both connotate negative though the following word is positive and negative respectively).

References

Hu, M., & Liu, B. (2004). Mining opinion features in customer reviews. National Conference on Artificial Intelligence.

https://www.cs.uic.edu/~liub/FBS/sentiment-analysis.html