项目作者: JayLohokare

项目描述 :
Email spam filter using Naive Bayes classifier
高级语言: Python
项目地址: git://github.com/JayLohokare/dynamic-text-naive-bayes-classifier.git
创建时间: 2017-12-19T23:21:32Z
项目社区:https://github.com/JayLohokare/dynamic-text-naive-bayes-classifier

开源协议:Apache License 2.0

下载


naive_bayes_classifier

Customizable Naive Bayes classifier.

Implemented a Naive Bayes classifer from scratch for classifying spam-ham emails.

Instructions to run the code - The python code expects parameters in following format:

python q2_classifier.py -f1 <train_dataset> -f2 <test_dataset> -o <output_file>

The classifier is set to ignore stop words. Put your stop words into the stop_words dictionary.