simple tf-idf in scala