vaderSentimentScores
Sentiment scores with VADER algorithm
Syntax
Description
Use vaderSentimentScores
to evaluate sentiment in tokenized
text with the Valence Aware Dictionary and sEntiment Reasoner (VADER) algorithm. The
vaderSentimentScores
function uses, by default, the VADER sentiment
lexicon and modifier word lists.
The function supports English text only.
returns sentiment scores for tokenized documents. The function calculates the compound
scores by aggregating individual token scores, adjusted according to the algorithm rules and
then normalized between -1 and 1. The function discards all tokens with a single character,
not present in the sentiment lexicon.compoundScores
= vaderSentimentScores(documents
)
specifies additional options using one or more name-value pairs.compoundScores
= vaderSentimentScores(documents
,Name,Value
)
[
also returns the ratios for proportions of the documents which are positive, negative, and
neutral, respectively, using any of the previous syntaxes.compoundScores
,positiveScores
,negativeScores
,neutralScores
] = vaderSentimentScores(___)
Examples
Input Arguments
Output Arguments
References
[1] Hutto, C., and Eric Gilbert. “VADER: A Parsimonious Rule-Based Model for Sentiment Analysis of Social Media Text.” Proceedings of the International AAAI Conference on Web and Social Media 8, no. 1 (May 16, 2014): 216–25. https://doi.org/10.1609/icwsm.v8i1.14550.
Version History
Introduced in R2019b