Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/waizkhan7/sentiment-analysis-of-tweets-using-naive-bayes
https://github.com/waizkhan7/sentiment-analysis-of-tweets-using-naive-bayes
Last synced: 7 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/waizkhan7/sentiment-analysis-of-tweets-using-naive-bayes
- Owner: WaizKhan7
- Created: 2020-12-22T18:40:22.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2020-12-22T19:15:00.000Z (almost 4 years ago)
- Last Synced: 2023-07-19T11:28:37.532Z (over 1 year ago)
- Language: Jupyter Notebook
- Size: 72.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sentiment-Analysis-of-Tweets-Using-Naive-Bayes
In this project, we have tried to classify "Twitter US Airline Sentiment" dataset using Naive Bayes classifier.
**Description:**
At first step, dataset consisting of three classes, Negative, Neutral and Positive Tweets were divided into Train and Test data, which consist of 80% and 20%
of total dataset respectively.After that, stop words and punctuations were removed to create a Vocabulory of the train dataset. and find frequency of each word of Vocabulory in train dataset.\
Then prior and likelihood of words were calculated and prediction were made about the classes of tweets in Test data.**Results:**
Results we got on the Test data were good, which are shown below:
Class 0 = Class of Negative Tweets\
Class 1 = Class of Neutral Tweets\
Class 2 = Class of Positive Tweets![alt text](https://github.com/WaizKhan7/Sentiment-Analysis-of-Tweets-Using-Naive-Bayes/blob/main/Results/results1.PNG?raw=true)
**Confusion Matrix for Negative Tweets:**
![alt text](https://github.com/WaizKhan7/Sentiment-Analysis-of-Tweets-Using-Naive-Bayes/blob/main/Results/negative.PNG?raw=true)
**Confusion Matrix for Neutral Tweets:**
![alt text](https://github.com/WaizKhan7/Sentiment-Analysis-of-Tweets-Using-Naive-Bayes/blob/main/Results/neutral.PNG?raw=true)
**Confusion Matrix for Positive Tweets:**
![alt text](https://github.com/WaizKhan7/Sentiment-Analysis-of-Tweets-Using-Naive-Bayes/blob/main/Results/positive.PNG?raw=true)