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.
- Host: GitHub
- URL: https://github.com/x4nth055/sentiment_analysis_naive_bayes
- Owner: x4nth055
- License: mit
- Created: 2019-04-07T15:37:02.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-07T15:43:13.000Z (about 6 years ago)
- Last Synced: 2024-10-13T13:06:53.697Z (6 months ago)
- Topics: naive-bayes-classifier, naive-bayes-text-classification, python, sentiment-analysis, sentiment-classification
- Language: Python
- Size: 12.8 MB
- Stars: 5
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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%
```