Naive Bayes and maximum entropy classifiers implementation on Ruby