compute_category_sentiment_score: clessnverse::compute_category_sentiment_score

View source: R/dev_t.R

compute_category_sentiment_scoreR Documentation

clessnverse::compute_category_sentiment_score

Description

[Experimental]

calculates the sentiment score using a word stems dictionnary by category

Usage

compute_category_sentiment_score(
  txt_bloc,
  category_dictionary,
  sentiment_dictionary
)

Arguments

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

Value

returns a dataframe containing the sentiment score of each category in the category dictionary

Examples

# To be documented


clessn/clessn-verse documentation built on Feb. 18, 2024, 12:42 p.m.