TF-IDF autoclassification algorithm with a MongoDB backend