Learn R Programming

texter (version 0.1.9)

sentimentAnalyzer: Get the overall weight of emotions conveyed in a corpus

Description

This function will help you extract the weight of emotions conveyed in a tweet

Usage

sentimentAnalyzer(word_vec, details)

Arguments

word_vec

This is the corpus you want to extract the sentiments from

details

(A TRUE/FALSE value): If TRUE you get a more robust distribution of these emotions. FALSE is summarised as Positive or Negative

Value

a data frame object. A data frame of each emotions and their corresponding weight in text

Examples

Run this code
# NOT RUN {
sentimentAnalyzer(doge$text, details = TRUE)

# }

Run the code above in your browser using DataLab