Python based Naive Bayes Classifier using nltk
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE
README.md
classifier.pickle
features.py
female.txt
male.txt
requirements.txt
train_classifier.py
use_classifier.py

README.md

python-naive-bayes-classifier

Files

train_classifier.py
  • Trains the NaiveBayesClassifier, dumps the classifier into classifier.pickle for use
classifier.pickle
  • Contains the classifier object prepared by train_classifier.py
features.py
  • Contains the features/factors to consider for classification.
use_classifier.py
  • Once the classifier is ready, use the classifier to classify new data.
male.txt and female.txt
  • Provides sample dataset to train your classifier, you replace and use yours.