Naive Bayes classifier in 50 lines
ebiquity.umbc.edu