change extract keyword, add dict, compute tf-idf