syuzhet: Extracts Sentiment and Sentiment-Derived Plot Arcs from Text

Extracts sentiment and sentiment-derived plot arcs from text using three sentiment dictionaries conveniently packaged for consumption by R users. Implemented dictionaries include "syuzhet" (default) developed in the Nebraska Literary Lab "afinn" developed by Finn {\AA}rup Nielsen, "bing" developed by Minqing Hu and Bing Liu, and "nrc" developed by Mohammad, Saif M. and Turney, Peter D. Applicable references are available in README.md and in the documentation for the "get_sentiment" function. The package also provides a hack for implementing Stanford's coreNLP sentiment parser. The package provides several methods for plot arc normalization.

Author
Matthew Jockers [aut, cre]
Date of publication
2016-04-28 00:17:58
Maintainer
Matthew Jockers <mjockers@gmail.com>
License
GPL-3
Version
1.0.0
URLs

View on CRAN

Man pages

get_dct_transform
Discrete Cosine Transformation with Reverse Transform.
get_nrc_sentiment
Get Emotions and Valence from NRC Dictionary
get_nrc_values
Summarize NRC Values
get_percentage_values
Chunk a Text and Get Means
get_sentences
Sentence Tokenization
get_sentiment
Get Sentiment Values for a String
get_sent_values
Assigns Sentiment Values
get_stanford_sentiment
Get Sentiment from the Stanford Tagger
get_text_as_string
Load Text from a File
get_tokens
Word Tokenization
get_transformed_values
Fourier Transform and Reverse Transform Values
rescale
Vector Value Rescaling
rescale_x_2
Bi-Directional x and y axis Rescaling
simple_plot
Plots simple and rolling shapes overlayed

Files in this package

syuzhet
syuzhet/inst
syuzhet/inst/CITATION
syuzhet/inst/extdata
syuzhet/inst/extdata/bovary.txt
syuzhet/inst/extdata/portrait.txt
syuzhet/inst/doc
syuzhet/inst/doc/syuzhet-vignette.R
syuzhet/inst/doc/syuzhet-vignette.html
syuzhet/inst/doc/syuzhet-vignette.Rmd
syuzhet/tests
syuzhet/tests/testthat.R
syuzhet/tests/testthat
syuzhet/tests/testthat/test-reading.R
syuzhet/NAMESPACE
syuzhet/R
syuzhet/R/syuzhet.R
syuzhet/R/sysdata.rda
syuzhet/vignettes
syuzhet/vignettes/syuzhet-vignette.Rmd
syuzhet/README.md
syuzhet/MD5
syuzhet/build
syuzhet/build/vignette.rds
syuzhet/DESCRIPTION
syuzhet/man
syuzhet/man/get_text_as_string.Rd
syuzhet/man/get_tokens.Rd
syuzhet/man/rescale_x_2.Rd
syuzhet/man/get_stanford_sentiment.Rd
syuzhet/man/get_nrc_values.Rd
syuzhet/man/get_nrc_sentiment.Rd
syuzhet/man/get_sentences.Rd
syuzhet/man/get_transformed_values.Rd
syuzhet/man/get_sentiment.Rd
syuzhet/man/rescale.Rd
syuzhet/man/get_sent_values.Rd
syuzhet/man/simple_plot.Rd
syuzhet/man/get_percentage_values.Rd
syuzhet/man/get_dct_transform.Rd