A simple implementation of Naive Bayes Classifier