‘TFIDFVECTORIZER’ OBJECT HAS NO ATTRIBUTE ‘GET_FEATURE_NAMES_OUT’
版本不同造成的问题
如果你当前 sklearn.version <= 0.24.x ,使用方法如下:
get_feature_names()
如果你 sklearn.version >= 1.0.x ,应该使用如下:
get_feature_names_out()
https://github.com/scikit-learn/scikit-learn/blob/0.24.X/sklearn/feature_extraction/text.py