The "Twitter Sentiment Analysis using NLP and Machine Learning" aims to harness the power of Natural Language Processing (NLP) and advanced machine learning techniques to accurately predict the sentiments of individuals expressed through Twitter handles or hashtags, while categorizing these sentiments as positive or negative.
Project Report »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
The core objective of this project is to build a sophisticated sentiment analysis model that can effectively classify tweets as either positive or negative. By training the model on a diverse and comprehensive dataset of labeled tweets, the system will learn to identify linguistic patterns, contextual cues, and emotional expressions that signify positive or negative sentiments.
You can run this project local machine. This project is built on Ubuntu.
Before running this project on locl machine, you need to create project on the developer.twitter.com and generate the consumer keys, and access token required for the project to get the data from the twitter using API's.
-
Clone the repo
git clone https://github.com/sourabhdeshmukh/twitter_sentiment_analysis.git
-
Setup your python virtual environment
python3 -m venv <env_name>
-
Activate your virtual environment
source <env_name>/bin/activate
-
Copy the consumer and access keys in streamlit file and store it inside ~/.streamlit directory
-
Install the python dependecies inside your virtual environment
pip install -r requirements.txt
-
Run the project using below command.
streamlit run app.py
-
Business Insights: This project's outcomes can be employed by businesses for brand monitoring, understanding customer feedback, and adjusting marketing strategies based on the sentiment trends.
-
Social Listening: Governments and organizations can utilize the sentiment analysis to gauge public opinion on social and political issues.
-
Event Tracking: Tracking sentiments related to specific events or campaigns can help organizations understand the overall impact and success of their initiatives.
-
User Experience Enhancement: Online platforms can utilize sentiment analysis to identify and address user concerns promptly, enhancing user satisfaction.
-
Market Research: Sentiment analysis can serve as a cost-effective method for conducting market research and gathering insights into consumer preferences.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Your Name - @100rabhdeshmukh - sourabh[dot]deshmukh[dot]988[at]gmail[dot]com
Project Link: https://github.com/sourabhdeshmukh/twitter_sentiment_analysis