polarity: Polarity This method will check and compute the polarity of...

Description Usage Arguments Value Examples

View source: R/polarity.R

Description

Polarity This method will check and compute the polarity of the text data. This method will return: - Number of Positive words - Number of Negative words

Usage

1
polarity(df_col)

Arguments

df_col

This method will expect dataframe's column with textual data

Value

dataframe with one row containing columns for count of positive, negative and neutral words

Examples

1
2
df = data.frame(text = c('He is a good guy.This is the worst coffee I had in my life.'))
polarity(df$text)

UBC-MDS/nlpsummarizer documentation built on April 2, 2020, 3:59 a.m.