Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 439 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 439 Bytes

Naive Bayes spam filter

How to run?

$ NaiveBayesSpamFilter.exe -h <hamDirectory> -s <spamDirectory> -u <unknownDirectory>

hamDirectory - path to directory with only ham messages.
spamDirectory - path to directory with only spam messages.
unknownDirectory - path to directory with unknown (spam or not) messages.

Results

Program print to stdout strings: {filename}:{1 if is_spam(filename) else 0}