A tf-idf scoring algorithm for vector space models