Implement simple Naive Bayes algorithm to learn from notes