Description Usage Arguments Value See Also Examples
Tokenizes character vectors, counts words, and then takes weighted average to estimate sentiment.
1 | sentiment(x,tokens,scores)
|
x |
length n character vector. If you're input dictionary is lower case only, then be sure to preprocess inputs to x using tolower. |
tokens |
length m character vector containing dictionary words |
scores |
m x d numerical matrix containing scores for each dictionary word on d-dimensions. Values can be weighted continuous scores or binary. |
n x d numerical matrix with scores on x for dimensions d
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.