Web app to show tweets, show WordCloud of tweets, Sentiment analysis of tweets for a given user or #tag
Done using flask as backend,
- Tweepy to access twitter API
- tweet-preprocessor for cleaning the tweets
- pycorenlp for sentiment analysis.
- Download and unzip StanfordCoreNLP(done in ubuntu):
wget https://nlp.stanford.edu/software/stanford-corenlp-full-2018-10-05.zip https://nlp.stanford.edu/software/stanford-english-corenlp-2018-10-05-models.jar
unzip stanford-corenlp-full-2018-10-05.zip
- Setup packages for english:
mv stanford-english-corenlp-2018-10-05-models.jar stanford-corenlp-full-2018-10-05
- Start the server:
cd stanford-corenlp-full-2018-10-05
java -mx6g -cp "*" edu.stanford.nlp.pipeline.StanfordCoreNLPServer -timeout 5000
(change timeout for more data transfer, change -mx6g for amount of memory used by server( 2g, 4g ... )
- Caching the searches and data for quicke display as Twitter API and StanfordCoreNLP take significant time
- Adding more Charts of sentiment analysis such as most used words in negative, positive sentiments
- Adding location in script so as to display the trending #tags locally for the user of webapp
- Adding search output filters such as time limit and number of tweets limit
- Having Different pages for Stremer and Analyser
- Including more images and links in the webpage to better the user experience