calculate_total_presence_sentiment: Calculate the number of sentences in each category of...

Description Usage Arguments Value Examples

View source: R/test.R

Description

This function loads text and calculates number of sentences which are positive, negative, very positive, very negative, neutral and sarcasm.

Usage

1

Arguments

text

A vector of sentences or a sentence (English).

Value

A 2-D matrix with two rows and 6 columns where first row contains the name of sentiment category and the second row contains the number in each category in string format.

Examples

1
calculate_total_presence_sentiment(c("This is good","This is bad"))

Example output

[1] "Processing sentence: this is good"
[1] "Processing sentence: this is bad"
     [,1]      [,2]       [,3]            [,4]      [,5]       [,6]           
[1,] "Sarcasm" "Negative" "Very Negative" "Neutral" "Positive" "Very Positive"
[2,] "0"       "1"        "0"             "0"       "1"        "0"            

RSentiment documentation built on May 2, 2019, 3:45 a.m.