Description Usage Arguments Value Examples
a prediction method to assign a sentiment score to a set of text samples from a Sentiment Classifier
1 2 | ## S3 method for class 'SentimentClassifier'
predict(obj, newdata)
|
obj |
a SentimentClassifier model object |
newdata |
a character vector containing text samples to be assessed |
Sentiment score predictions of each entry of newdata
1 2 | sentimentEx<-SentimentClassifier(c('some positive text'),c('negative text samples'))
predict(sentimentEx,c('more negative text','most positive text'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.