Sentiment analysis is a text classification problem. Using Multinomial Naive Bayes approach, It is able to classify negative/positive reviews from movie reviews corpus.
- scikit-learn 0.20.2
pip3 install -r requirements.txt
python train.py
python test.py
Here are the 4 metric scores after training:
Accuracy: 84.88%
Precision:87.36%
Recall: 81.31%
F1_SCORE: 84.23%