/twitter-sentiment-analysis

Twitter sentiment analyzer

Primary LanguagePython

twitter-sentiment-analysis

Twitter sentiment analyzer

Technologies:
NLTK, Elastisearch and Kibana.

Description:

  1. A Naive Bayes Classifier is trained on a set of 21k tweets. It is then used to classify live Twitter streams as positive, negative and netural.
  2. Tweepy (Twitter API) was used to stream live tweets for a topic (input to program).
  3. Sentiments which were output of the classifier were indexed using Elasticsearch.
  4. Kibana was used for plotting graphs of sentiments predicted by live tweets.

Steps:

  1. Clone the repository.
  2. Run the files in following order
    • train_classifier.py
    • load_classifier.py
    • twitter_stream.py