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