Project_Emotional_Analysis

Author

Satya Panda

Published

April 26, 2024

Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see https://quarto.org.

Download the required libraries

Warning in .recacheSubclasses(def@className, def, env): undefined subclass
"ndiMatrix" of class "replValueSp"; definition not updated

Loading Data

Determining mirror for Project Gutenberg from https://www.gutenberg.org/robot/harvest
Using mirror http://aleph.gutenberg.org

Processing Poe’s Data

Processing Doyle’s Data

Merging Data

Tokenization and Cleaning

Sentiment Analysis

Emotional Word Count Without positive & negative sentiment

Joining with `by = join_by(word)`
Warning in inner_join(mytext, nrc_dict): Detected an unexpected many-to-many relationship between `x` and `y`.
ℹ Row 1 of `x` matches multiple rows in `y`.
ℹ Row 13214 of `y` matches multiple rows in `x`.
ℹ If a many-to-many relationship is expected, set `relationship =
  "many-to-many"` to silence this warning.

Emotional Word Count with Positive & Negative Sentiment

Joining with `by = join_by(word)`
Warning in inner_join(mytext, nrc_dict): Detected an unexpected many-to-many relationship between `x` and `y`.
ℹ Row 1 of `x` matches multiple rows in `y`.
ℹ Row 13214 of `y` matches multiple rows in `x`.
ℹ If a many-to-many relationship is expected, set `relationship =
  "many-to-many"` to silence this warning.