Fix the Fixing - SAFEYOU+ EU projects code
- Install Mongo in Windows: https://www.youtube.com/watch?v=1uFY60CESlM
- Install MongoDB plugin in IntelliJ
- Install Maven in Windows: http://www.mkyong.com/maven/how-to-install-maven-in-windows/
- Check out project from Version Control
- Create mongod service in Windows
org.mongodb:mongodb-driver:3.2.2
com.github.habernal:confusion-matrix:1.02
Folder "out" should be created manually. In order to run sentiment analysis a subfolder with the name of the study case should be created. e.g. "out/djokovic"
-
Download WordNet executable (not just DB files)
-
Download rita.jar (end of page)
-
Add rita.jar to project and if needed change path in getSynonyms function (line: RiWordNet wordnet = new RiWordNet("C:\Program Files (x86)\WordNet\2.1"); // The WordNet directory)
querysearch="(Djokovic OR Novak) fixing" since=2016-01-18 until=2016-01-30 maxtweets=1000 theme="djokovic" substances="n"
For instance, if I'm looking for a tweet created at 2016/01/28 I'd type in the filter text box: {'tweet.date':'2016/01/28'} , which typically follows a JSON format.
In order to use the Google API and collect Youtube comments, each user needs Google Credentials
More: https://developers.google.com/youtube/registering_an_application#Create_API_Keys
The API key should be inserted in the first line of [~Credentials/Youtube/API_KEY.txt] file