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

Description Usage Arguments Value Examples

Description

This function loads text and words of positive and negative sentiment supplied externally as paramater, and calculates number of sentences which are positive, negative, very positive, very negative, neutral and sarcasm.

Usage

1
calculate_custom_total_presence_sentiment(text, positivewords, negativewords)

Arguments

text

A vector of sentences or a sentence (English).

positivewords

A vector of words of positive sentiment.

negativewords

A vector of words of negative sentiment.

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_custom_total_presence_sentiment(c("This is good","This is bad"),c("good"),c("bad"))

SubhasreeBose/RSentiment documentation built on May 20, 2019, 5:09 p.m.