Description Usage Arguments Value Examples
This function loads text and words of positive and negative sentiment supplied externally as paramater and calculates sentiment of each sentence. It classifies sentences into 6 categories: Positive, Negative, Very Positive, Very Negative Sarcasm and Neutral.
1 | calculate_custom_sentiment(text, positivewords, negativewords)
|
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. |
A vector containing sentiment of each sentence.
1 2 | calculate_custom_sentiment("This is good",c("good"),c("bad"))
calculate_custom_sentiment(c("This is good","This is bad"),c("good"),c("bad"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.