A demo application using text mining on TwitterSearch feed data to display predictions on Flu in the UK
Start demo
- Install Webstorm from IntelliJ. You can find the JavaScript IDE by navigating to the following URL: Webstorm A 30-day free trial is included.
- Unzip the .zip project file to a known location.
- Once Webstorm is successfuly installed, in the navigation bar located at the top select File -> Open..
- Select the Project root folder and select Open.
- Select the bin/www configuration and Run the project.
- Go to your browser and navigate to localhost:3000
- The Web app should be running and displayed in the browser.
Important to note
- Pagination (e.g. retrieval of multiple pages of of tweets from twitter query) is turned off by default.
You can turn this on by navigating to twitterSearchGet.js and uncomment line 78.
//retrieveTweetsBatch(maxID,callback);
- Only the first 100 most recent tweets that fulfill the query are used for prediction.
- There is a limit to the amount of requests you are allowed to send to Twitter. This resolves quickly within a few minutes.
- If you want to receive the latest tweets that have been generated in the meantime, run
analysisAutoML.js
. If you see tweets returned to the console, that means the latest tweets have been analysed, the classifier has predicted whether the retrieved tweets are actually flu and removed non-flu tweets, and a newdata/cities.json
file has been generated. - In the folder
data/tweets.csv
a list of 5000 tweets including locations are saved. These may be used for testing purposes.