Learn R Programming

syuzhet (version 1.0.4)

get_sentiment_dictionary: Sentiment Dictionaries

Description

Get the sentiment dictionaries used in syuzhet.

Usage

get_sentiment_dictionary(dictionary = "syuzhet", language = "english")

Arguments

dictionary

A string indicating which sentiment dictionary to return. Options include "syuzhet", "bing", "afinn", and "nrc".

language

A string indicating the language to choose if using the NRC dictionary and a language other than English #' @return A data.frame

Examples

Run this code
# NOT RUN {
get_sentiment_dictionary()
get_sentiment_dictionary('bing')
get_sentiment_dictionary('afinn')
get_sentiment_dictionary('nrc', language = "spanish")
# }

Run the code above in your browser using DataLab