An open API service indexing awesome lists of open source software.

https://github.com/x4nth055/sentiment_analysis_naive_bayes

Implementing Naive Bayes Machine Learning algorithm to predict sentiment from reviews.
https://github.com/x4nth055/sentiment_analysis_naive_bayes

naive-bayes-classifier naive-bayes-text-classification python sentiment-analysis sentiment-classification

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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%
```