Introduction to RSentiment

Subhasree Bose

2016-05-03

RSentiment is the package that will ease mining opinions or analysing positive or negative sentiments of any subjective information in any source material in English. It uses text analysis and natural language processing. While computing score of any sentence, it takes into account sarcasms, negations and various degrees of adjectives.

Methods

There are currently 3 methods in the package:

calculate_score: calculates score of a sentence or a collection of sentences as text.

calculate_sentiment: classifies a sentence or a text into a sentiment category.

calculate_total_presence_sentiment: calculates total number of sentences in each sentiment category.

Score Range

calculate_score gives score as output which can be either 0 or greater than 0 or less than 0.

Note: 99 is used to indicate the score of sentences which are sarcasm.

Sentiment Categories

There are following 6 sentiments in which a sentence or a text is classified into by the method calculate_sentiment


Very Negative
Negative
Neutral
Positive
Very Positive
Sarcasm

More Examples

You can check score of sentence like calculate_score(c(“This package is doing well”,“This is an average package”,“Package is not working well”))

[1] 1 0 -1