Package: syuzhet 1.0.7
syuzhet: Extracts Sentiment and Sentiment-Derived Plot Arcs from Text
Extracts sentiment and sentiment-derived plot arcs from text using a variety of sentiment dictionaries conveniently packaged for consumption by R users. Implemented dictionaries include "syuzhet" (default) developed in the Nebraska Literary Lab "afinn" developed by Finn Å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.
Authors:
syuzhet_1.0.7.tar.gz
syuzhet_1.0.7.zip(r-4.5)syuzhet_1.0.7.zip(r-4.4)syuzhet_1.0.7.zip(r-4.3)
syuzhet_1.0.7.tgz(r-4.4-any)syuzhet_1.0.7.tgz(r-4.3-any)
syuzhet_1.0.7.tar.gz(r-4.5-noble)syuzhet_1.0.7.tar.gz(r-4.4-noble)
syuzhet_1.0.7.tgz(r-4.4-emscripten)syuzhet_1.0.7.tgz(r-4.3-emscripten)
syuzhet.pdf |syuzhet.html✨
syuzhet/json (API)
# Install 'syuzhet' in R: |
install.packages('syuzhet', repos = c('https://mjockers.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/mjockers/syuzhet/issues
Last updated 1 years agofrom:73ec7d852e. Checks:OK: 7. Indexed: yes.
Target | Result | Date |
---|---|---|
Doc / Vignettes | OK | Nov 08 2024 |
R-4.5-win | OK | Nov 08 2024 |
R-4.5-linux | OK | Nov 08 2024 |
R-4.4-win | OK | Nov 08 2024 |
R-4.4-mac | OK | Nov 08 2024 |
R-4.3-win | OK | Nov 08 2024 |
R-4.3-mac | OK | Nov 08 2024 |
Exports:get_dct_transformget_nrc_sentimentget_nrc_valuesget_percentage_valuesget_sent_valuesget_sentencesget_sentimentget_sentiment_dictionaryget_stanford_sentimentget_text_as_stringget_tokensget_transformed_valuesmixed_messagesrescalerescale_x_2simple_plot
Dependencies:clicpp11data.tabledplyrdttfansigenericsgluelatticelifecyclemagrittrNLPpillarpkgconfigpurrrR6rlangslamstringistringrtextshapetibbletidyrtidyselectutf8vctrswithrzoo
Readme and manuals
Help Manual
Help page | Topics |
---|---|
Discrete Cosine Transformation with Reverse Transform. | get_dct_transform |
Get Emotions and Valence from NRC Dictionary | get_nrc_sentiment |
Summarize NRC Values | get_nrc_values |
Chunk a Text and Get Means | get_percentage_values |
Assigns Sentiment Values | get_sent_values |
Sentence Tokenization | get_sentences |
Get Sentiment Values for a String | get_sentiment |
Sentiment Dictionaries | get_sentiment_dictionary |
Get Sentiment from the Stanford Tagger | get_stanford_sentiment |
Load Text from a File | get_text_as_string |
Word Tokenization | get_tokens |
Fourier Transform and Reverse Transform Values | get_transformed_values |
Mixed Messages | mixed_messages |
Vector Value Rescaling | rescale |
Bi-Directional x and y axis Rescaling | rescale_x_2 |
Plots simple and rolling shapes overlayed | simple_plot |