Using Naive Bayes for sentiment analysis on tweets. Given a tweet, the objective is to predict whether it has a positive sentiment or a negative sentiment.
Dataset: nltk's twitter_samples
- Train Naive Bayes model to analyse the sentiment of tweets
- Test the model's performance
- Predict on custom tweet
Use the package manager pip to install all the dependencies.
pip install -r requirements.txt
cd NaiveBayesSentiment
cd core/naivebayes
python naive_bayes_sentiment.py