Description Usage Arguments Examples
Implements the Naive-Bayes prior probability classification function for determining the sentiment of text. Multiple customization parameters may defined for the created document term matrix in order to ensure maximum accuracy.
1 | classify.naivebayes(sentences, pstrong = 0.5, pweak = 1, prior = 1, ...)
|
sentences |
the sentences to classify |
pstrong |
the probability that a strong subjective term appears in the text |
pweak |
the probability that a weakly subjective term appears in the text |
prior |
the prior probability to use (1.0 by default) |
1 | classify.naivebayes(c("I am happy", "I am sad"))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.