Modified sum to product in tfidf