This function creates an NRC emotion dataframe from a text corpus.
wordSentData(corp, word_len = c(3, 26))
tm package document Corpus
object.
Numeric vector. Min and max length of words to include. Default is c(3, 26)
.
An NRC sentiment dataframe.
Uses the syuzhet package implementation of Saif Mohammad’s NRC emotion lexicon.