Skip to content

Latest commit

 

History

History
24 lines (24 loc) · 452 Bytes

README.md

File metadata and controls

24 lines (24 loc) · 452 Bytes

Description

Sentiment analysis is a text classification problem. Using Multinomial Naive Bayes approach, It is able to classify negative/positive reviews from movie reviews corpus.

Requirments

  • scikit-learn 0.20.2
pip3 install -r requirements.txt

Train

python train.py

Test

python test.py

Result

Here are the 4 metric scores after training:

Accuracy: 84.88%
Precision:87.36%
Recall:   81.31%
F1_SCORE: 84.23%