Skip to content

roshankshaw/Real-Time-Categorical-Tweet-Analyzer

 
 

Repository files navigation

Real Time Categorical Tweet Analyzer

Analysis of tweets fetched in real time from twitter based on a categorical keyword and then sentiment evaluation of new tweets based on the tweet data

Contents

  1. Description
  2. Installation
  3. Usage
  4. Contributing
  5. Credits
  6. License

Description

There is a great spectrum of sentiments that can be associated with tweets from different domains.
This project bridges the gap between the spectrum of emotions and sentiments across tweets from various domains and at different points of time.
It provides real time sentiment analysis on categorical tweets and also providing the appropriate sentiments for new data.
It focuses on analysing real time tweets data from twitter based on a keyword and extracting sentiments from tweets on twitter to identify the kind of emotion/sentiment associated with a particular person, thing, topic, idea, etc.
The fetched tweets are used to train a NLP model which in turn produces appropriate sentiment score on any new tweet based on the real time data. The user knows the sentiment associated with that tweet before tweeting

Installation

  1. It is always a good idea to create a virtual environment for such projects. Inside a desired directory create a virtual environment for this project. For windows use : py -m venv env
  2. Activate the virtual environment using : .\env\Scripts\activate
  3. Clone the project using : git clone <ssh/https url>
  4. cd into the repository directory and run pip install -r requirements.txt to install the packages only for this virtual environment.

Usage

  1. You can run the application using the analysis_gui.py

  2. Run it using python analysis_gui.py

  3. This opens up a gui asking you to enter a word for fetching the tweets and training the model.

  4. After training of the model, you can enter a word and then model predicts its sentiment.

  5. Sentiment for the entered word

Contributing

To contribute to the project follow the below steps

  1. Fork the project
  2. Follow the installation steps provided above on your local
  3. For any additional feature or bug create a new issue. Or work on an existing issue.
  4. Create a pull request mentioning the issue in your pull request.

About

Analysis of tweet sentiment using NLP and machine learning

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 86.1%
  • Python 13.9%