Learn R Programming

syuzhet (version 1.0.7)

get_sentiment_dictionary: Sentiment Dictionaries

Description

Get the sentiment dictionaries used in syuzhet.

Usage

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

Value

A data.frame

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

Examples

Run this code
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