vaderSentimentScores
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, Clayton J., and Eric Gilbert. "Vader: A parsimonious rule-based model for sentiment analysis of social media text." In Eighth international AAAI conference on weblogs and social media. 2014.
Version History
Introduced in R2019b