项目作者: gurkandemir

项目描述 :
Naive Bayes Classifiers in order to sentiment movie reviews.
高级语言: Python
项目地址: git://github.com/gurkandemir/Naive-Bayes-Classifier.git
创建时间: 2020-04-21T22:10:48Z
项目社区:https://github.com/gurkandemir/Naive-Bayes-Classifier

开源协议:

下载


Naive-Bayes-Classifier " class="reference-link">
Naive-Bayes-Classifier

Naive Bayes(NB) classifiers, Multinomial NB, Bernoulli NB, and Binary NB, for identifying the sentiment(positive/negative) of a given movie review.

Requirements " class="reference-link">
Requirements

  1. 1. Python
  2. 2. Regex
  3. 3. Argument Parser

How to Run? " class="reference-link">
How to Run?

In order to run movie Review Sentiment Classification, execute the following from the command line under Code Files/:

  1. > python3 classifier.py --dataset [DATASET]
  1. where [DATASET] -> path of dataset (required)

Notes " class="reference-link">
Notes

  1. 1. Dataset must contain two folders named train, and test.
  2. 2. Both train and test folders must contain two folders named pos, and neg.
  3. 3. pos folder must contain many positive movie reviews in txt format.
  4. 4. neg folder must contain many negative movie reviews in txt format.