classify.aggregate: Primitive Bagging Sentiment Classification

Description Usage Arguments Examples

View source: R/classify.R

Description

Provides a simple aggregation function in order to clasify a vector of sentences. Incorporates text trimming and removes extraneous characters for better analysis.

Usage

1
classify.aggregate(sentences, pos.words, neg.words, .progress = "none")

Arguments

sentences

a vector of sentences to classify

pos.words

the dictionary of positive words

neg.words

the dictionary of negative words

.progress

boolean value indicating whether a progress bar should be displayed

Examples

1
classify.aggregate(c("I am happy"), c("happy", "overjoyed"), c("sad", "depressed"), .progress='none')

mananshah99/sentR documentation built on May 21, 2019, 11:23 a.m.