This is a somewhat general platform I've been working on for doing naive bayes classification, though it depends on having the data organized in a certain way in MySQL. It's also part of an experiment of having C be part of a web stack for a computationally intensive webapp.