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

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.

Browse man pages Browse package API and functions Browse package files

AuthorMatthew Jockers [aut, cre]
Date of publication2017-03-06 08:29:07
MaintainerMatthew Jockers <mjockers@gmail.com>
LicenseGPL-3
Version1.0.1
URL https://github.com/mjockers/syuzhet
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("syuzhet")

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_sentiment_dictionary: Sentiment Dictionaries
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

Functions

get_dct_transform Man page Source code
get_nrc_sentiment Man page Source code
get_nrc_values Man page Source code
get_percentage_values Man page Source code
get_sent_values Man page Source code
get_sentences Man page Source code
get_sentiment Man page Source code
get_sentiment_dictionary Man page Source code
get_stanford_sentiment Man page Source code
get_text_as_string Man page Source code
get_tokens Man page Source code
get_transformed_values Man page Source code
rescale Man page Source code
rescale_x_2 Man page Source code
simple_plot Man page Source code

Files

inst
inst/CITATION
inst/extdata
inst/extdata/bovary.txt
inst/extdata/portrait.txt
inst/doc
inst/doc/syuzhet-vignette.R
inst/doc/syuzhet-vignette.html
inst/doc/syuzhet-vignette.Rmd
tests
tests/testthat.R
tests/testthat
tests/testthat/test-reading.R
NAMESPACE
R
R/syuzhet.R
R/sysdata.rda
vignettes
vignettes/syuzhet-vignette.Rmd
README.md
MD5
build
build/vignette.rds
DESCRIPTION
man
man/get_sentiment_dictionary.Rd
man/get_text_as_string.Rd
man/get_tokens.Rd
man/rescale_x_2.Rd
man/get_stanford_sentiment.Rd
man/get_nrc_values.Rd
man/get_nrc_sentiment.Rd
man/get_sentences.Rd
man/get_transformed_values.Rd
man/get_sentiment.Rd
man/rescale.Rd
man/get_sent_values.Rd
man/simple_plot.Rd
man/get_percentage_values.Rd
man/get_dct_transform.Rd
syuzhet documentation built on May 19, 2017, 7:50 p.m.