calculate_total_presence_sentiment {RSentiment} | R Documentation |
Calculate the number of sentences in each category of sentiment.
Description
This function loads text and calculates number of sentences which are positive, negative, very positive, very negative, neutral and sarcasm.
Usage
calculate_total_presence_sentiment(text)
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
calculate_total_presence_sentiment(c("This is good","This is bad"))
[Package RSentiment version 2.2.2 Index]