A simple tf-idf implementation for text documents