Get words associated with a lexicon for subsequent sentiment analysis.
get_sents(lexicon = c("bing", "afinn", "nrc", "loughran"), normalize = TRUE)
lexicon | character. Specifies lexicon to use. Must be a lexicon available in the |
---|---|
normalize | logical. Only releveant if |
data.frame
Called by compute_sent_facet_summary()
.
This function is essentially a customized version of tidytext::get_sentiments()
.
https://github.com/juliasilge/tidytext/blob/master/R/sentiments.R.