Description Usage Arguments Value Examples
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.
1 | SentimentClassifier(positive, negative, type = c("linear", "bayes"))
|
positive |
character vector with samples of positive text |
negative |
character vector with samples of negative text |
type |
the classifier model type (default \'linear\') |
a SentimentClassifier Object
1 | SentimentClassifier(c('some positive text'), c('negative text samples'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.