tf-idf based on the nr of days that each ngram appears;computation of doc similarity matrix with cosine and tf-idf