ganigavinaya / NaiveBayes

NaiveBayes classifier with an without stop words to classify Ham and Spam emails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NaiveBayes

Required: python 3

Instructions to run: python MLAssignment.py [training ham path] [training spam path] [test ham path] [test spam path] [stopwords]

stopword takes following parameters if given y or yes then Naive bayes run by removing stop words if given n or no then Naive bayes run without removing stop words

output:

  1. Naive Bayes ham accuracy
  2. Naive Bayes spam accuracy

Please do not end any path '/' Please note that the program may require a long time to finish execution

About

NaiveBayes classifier with an without stop words to classify Ham and Spam emails


Languages

Language:Python 100.0%