Skip to content

Implementing Naive Bayes Machine Learning algorithm to predict sentiment from reviews.

License

Notifications You must be signed in to change notification settings

x4nth055/sentiment_analysis_naive_bayes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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%

About

Implementing Naive Bayes Machine Learning algorithm to predict sentiment from reviews.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages