Sentiment analysis module for intelligent tutoring system.
- Java 1.8
- All the dependencies libraries are under the /lib directory in this repository except for the Stanford core nlp library, which needs to be installed using mvn plugin in Intellij (this will be covered in next section).
-
Download IDE(Intellij Community Version) from https://www.jetbrains.com/idea/download/?utm_expid=.ofjb89XbTQqGQqkIvxouYw.0&utm_referrer=https%3A%2F%2Fwww.google.com%2F#section=mac .
-
Go to your desired local directory.
-
Run command to clone the sentiment analysis repository from github:
git clone https://github.com/Min-Chen/HCI_Sentiment_Analysis_Min_Chen.git
. -
Use Intellij to open this repository locally.
-
Install Stanford core nlp library.
Input the library name and hit enter to search for the library in mvn.
Wait for some time to find the library. When the "OK" button is ready, hit "OK".
Click OK. And the Stanford core nlp library should be installed successfully.
-
Install Stanford core nlp models.
- Download CoreNLP models jar file(362.5 MB) from this link: https://www.dropbox.com/s/h2wc4zauzdkovlx/stanford-corenlp-models-current.jar?dl=0
- Move this stanford-corenlp-models-current.jar to the lib directory of this repository.
- Make sure the repository is installed locally.
- Run the main class
DriverSentimentAnalysis.java
. You should see that "> Server starts at port: 3050". That means this sentiment analysis module is successfully running. - Type the sentence you want to do sentiment analysis.
- e.g. Type in "Japanese is too hard for me to learn." The system will do sentiment analysis on the sentence, and output the sentiment result for you below this sentence.