Tf-idf类目加权转换 Tf-idf-Category-weighting-transformer Formula Derivation Sample Usage >>> import TfIdfCategoryWeighting >>> Tf_idf_cw_vectorizer = TfIdfCategoryWeighting.TfidfPro_Vectorizer(use_idf=True,use_Wt=True) >>> Tf_idf_cw_vectorizer.fit(X,Y) >>> X_vec = Tf_idf_cw_vectorizer.transform(X) Installation $ pip install Tf-Idf-CategoryWeighting