Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
68 lines (43 sloc) 2.13 KB
output: github_document
<!-- is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
collapse = TRUE,
comment = "#>",
fig.path = "README-"
# SentimentDictionaries
**SentimentDictionaries** is an R package containing dictionaries for sentiment analysis of movie reviews and financial filings.
## Overview
This package provides domain-specific dictionaries for sentiment analysis in R. Each dictionary consists of words that statistically feature a positive or negative polarity in movie reviews or financial filings The dictionaries are extracted from two different corpora, namely, IMDb movie reviews and U.S. regulated Form 8-K filings. Details are available from the following reference.
* Proellochs, Feuerriegel and Neumann (2017): Language That Matters: Statistical Inferences for Polarity Identification in Natural Language, Working Paper, Chair for Information Systems Research, University of Freiburg, Germany.
Both dictionaries can be easily used in combination with the [SentimentAnalysis]( package.
## Installation
You can install **SentimentDictionaries** from github with:
# install.packages("devtools")
devtools::install_github("nproellochs/SentimentDictionaries", subdir = "R-package")
## Usage
This section shows the basic functionality of how to load the provided dictionaries into R. First, load the corresponding package **SentimentDictionaries**.
```{r, message=FALSE}
### Load IMDb movie reviews dictionary
The following code shows how to load the dictionary for sentiment analysis of movie reviews.
```{r, message=FALSE}
dictionaryIMDB <- loadDictionaryIMDB()
### Load Form 8-K filings dictionary
The following code shows how to load the dictionary for sentiment analysis of financial filings.
```{r, message=FALSE}
dictionary8K <- loadDictionary8K()
## License
**SentimentDictionaries** is released under the [MIT License](
Copyright (c) 2017 Nicolas Proellochs & Stefan Feuerriegel
You can’t perform that action at this time.