Skip to content

OSWINDS/FixTheFixing-SAFEYOU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FixTheFixing - SAFEYOU+

Fix the Fixing - SAFEYOU+ EU projects code

Before you run:

  1. Install Mongo in Windows: https://www.youtube.com/watch?v=1uFY60CESlM
  2. Install MongoDB plugin in IntelliJ
  3. Install Maven in Windows: http://www.mkyong.com/maven/how-to-install-maven-in-windows/
  4. Check out project from Version Control
  5. Create mongod service in Windows

Dependencies

org.mongodb:mongodb-driver:3.2.2
com.github.habernal:confusion-matrix:1.02

Folder Creation

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"

For WordNet:

  • 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)

Example Arguments for Twitter

querysearch="(Djokovic OR Novak) fixing" since=2016-01-18 until=2016-01-30 maxtweets=1000 theme="djokovic" substances="n"

Search query for Mongo Explorer (Ctrl+F in IntelliJ)

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.

Credentials for Youtube

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages