predict.SentimentClassifier: Predict Sentiment Classifier

Description Usage Arguments Value Examples

View source: R/classifier.R

Description

a prediction method to assign a sentiment score to a set of text samples from a Sentiment Classifier

Usage

1
2
## S3 method for class 'SentimentClassifier'
predict(obj, newdata)

Arguments

obj

a SentimentClassifier model object

newdata

a character vector containing text samples to be assessed

Value

Sentiment score predictions of each entry of newdata

Examples

1
2
sentimentEx<-SentimentClassifier(c('some positive text'),c('negative text samples'))
predict(sentimentEx,c('more negative text','most positive text'))

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