For this class's major final project, I set out to make the process of analyzing textual files and URL links for sentiment insights much easier. By automating much of the code statements required to perform such an analysis, all a user must do is execute a few lines of code to get the sentiment results that they are seeking.
In sentimentTextAnalyzer2, users can...
- See their files read and their html file links parsed and ready for analysis.
- Have their file/URL go through the necessary preprocessing steps like:
- Removing punctuation
- Removing numbers
- Makes text lowercase
- Removes any English stopwords like (and, but, then, the, etc.)
- Get fast results regarding the frequency of positive and negative words courtesy of the Bing lexicon.
- Visualize their findings with word clouds.
Installing this package in RStudio:
Please follow this link to the sentimentTextAnalyzer2 repository: sentimentTextAnalyzer2 Repository
There you will find various files relating to the documentation of the package but also how to install this file in your own RStudio. Please download the file that reads sentimentTextAnalyzer2_0.1.0.tar.gz. Place it in your preferred R directory and install. The installation steps should look something like this.
Package Installation Option 2:
You can also run these lines of code to call the library into your RStudio.
# If you haven't already installed devtools...
# install.packages("devtools")
library(devtools)
devtools::install_github("ProfessorHatsuneMiku/sentimentTextAnalyzer2")
Quick Start Guide:
Also included in the repository is a demo guide to using the functions with a working example. I highly recommend you try it out to get a feel for the functions: Quick Start Demo
~ Katie
No comments:
Post a Comment