Dictionary-Based Sentiment Analysis
Sentiment analysis
Compares two dictionaries
Compare sentiment values to existing response variable
Convert continuous sentiment to direction
Convert continuous sentiment to direction
Count words
Elastic net estimation
Extract words from dictionary
Generates dictionary of decisive terms
Estimation via generalized least squares
Lasso estimation
Ordinary least squares estimation
Loads Harvard-IV dictionary into object
Loads Henry's finance-specific dictionary into object
Loads Loughran-McDonald dictionary into object
Loads uncertainty words from Loughran-McDonald into object
Loads polarity words from qdap package into object
Retrieves IMDb dataset
Estimation method
N-gram tokenizer
Number of words in dictionary
Number of negative words in dictionary
Number of positive words in dictionary
KDE plot of estimated coefficients
Line plot with sentiment scores
Scatterplot with trend line between sentiment and response
Prediction for given dictionary
Default preprocessing of corpus
Output content of sentiment dictionary
Read dictionary from text file
Ridge estimation
Sentiment based on linear model
Ratio of negative words
Ratio of positive words
Ratio of dictionary words
Sentiment score
Sentiment polarity score
Counts word frequencies
SentimentAnalysis: A package for analyzing sentiment of texts
Create new sentiment dictionary based on input
Create a sentiment dictionary of positive and negative words
Create a sentiment dictionary of words linked to a score
Create a sentiment dictionary consisting of a simple wordlist
Spike-and-slab estimation
Output summary information on sentiment dictionary
Default preprocessing of corpus and conversion to document-term matrix
Transforms the input into a Corpus object
Write dictionary to text file
Performs a sentiment analysis of textual contents in R. This implementation utilizes various existing dictionaries, such as Harvard IV, or finance-specific dictionaries. Furthermore, it can also create customized dictionaries. The latter uses LASSO regularization as a statistical approach to select relevant terms based on an exogenous response variable.
Useful links