compute_category_sentiment_score | R Documentation |
calculates the sentiment score using a word stems dictionnary by category
compute_category_sentiment_score(
txt_bloc,
category_dictionary,
sentiment_dictionary
)
txt_bloc |
: the bloc of text to study |
category_dictionary |
: a topic dictionary containing the categories to calculate the sentiment on |
sentiment_dictionary |
: sentiment lexicoder dictionary |
returns a dataframe containing the sentiment score of each category in the category dictionary
# To be documented
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.