Change the freq value according to the tfidf sequence.