tfidf_model = TfidfVectorizer().fit(document). Sparse_result = tfidf_model.transform(document) # get tf-idf matrix, sparse matrix representation.
確定! 回上一頁