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