SentimentClassifier: Sentiment Classifier

Description Usage Arguments Value Examples

View source: R/classifier.R

Description

a simple sentiment classifier object that takes a set of positive sample text and a set of negative sample text, and creates a sentiment classifier.

Usage

1
SentimentClassifier(positive, negative, type = c("linear", "bayes"))

Arguments

positive

character vector with samples of positive text

negative

character vector with samples of negative text

type

the classifier model type (default \'linear\')

Value

a SentimentClassifier Object

Examples

1
SentimentClassifier(c('some positive text'), c('negative text samples'))

duncankmckinnon/ezRnlp documentation built on Aug. 6, 2020, 1:28 a.m.