This is a small project made to classify mails as spam or ham using the Naive Baye's Classifier.
Following are the steps to use the classifier:
1.Firstly, run ham_classifier.py and spam_classifier.py to create the dictionary of words mapped to the corresponding conditional probabilities which is in turn stored in the two text files.
2.To test the algorithm on the testing dataset, run testing.py file.
avinashr175/Spam-classifier
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|