Update tf-idf Calculation