tf-idf restruct