What is sentiment analysis?
Sentiment analysis is the process of extracting a particular mood (typically on the scale of positive to negative) from a piece of potentially subjective text. It is pervasive in the corporate world as a way to examine surveys, documents, and reviews. For instance, in my group’s microfiche project, we are using it to analyze the sentiment of the college’s own advertisements.
There is plenty of software that does form sentiment analysis. If you want to code and get technical, you can use the Python library nltk. I am going to use MonkeyLearn which uses its own trained models for sentiment analysis.
Get the text that you want to analyze:
Using whatever method you want, get a text file that you want to run sentiment analysis on. For the purposes of this tutorial, I am going to use Austin Mason’s syllabus for Hacking the Humanities which is accessible here or by pressing the “syllabus” tab on this very website. There are more advanced ways to collect data such as a CSV file of reviews, but that will not be covered in this tutorial.
Create an account on Monkey Learn:
Click here to go to the Monkey Lean. Create a free account by pressing the “sign up free” button. There are going to be several popups asking how much you will use it and for what.
Setting up Monkey Learn
After you verify your account information, enter the corresponding information appropriate to what you will use it for (the syllabus for context is around 1500 words).
Find the pre-made sentiment analysis:
When you first log in to your workspace, you may notice that there is nothing that says sentiment analysis here, and you may be tempted to create your “own workflow.” You do not want to create your own workflow because the Monkey Learn team has to manually approve it. Instead, press “pre-made models.” Then, you should see a button that says “Sentiment Analysis.”
Delete the existing text, and copy and paste your own text in the window. Finally, you should receive a percentage of positivity or negativity. The syllabus for this class is around 72% positive.
You can now run sentiment analysis. Nice job!
Monkey Learn has dozens of different analysis models that you can test. Be warned though, many require some form of a CSV file, and you may have to choose a different file to test. Another popular software for sentiment analysis is Lingmotif. If sentiment analysis is something that you want to explore on a more technical level, I highly recommend that you check out the Python package nltk as it is just a python library that you can use with your own code.