Open rbarreto opened 1 year ago
Code that generates error: tfidf = vectorizer.fit_transform(data) tokens = vectorizer.get_feature_names_out()
Error: Attribute Error: tfidfvectorizer does not have attribute 'get_feature_names_out'
You need to update your version of scikit-learn. They changed the name of the function from get_feature_names() to get_feature_names_out().
get_feature_names()
get_feature_names_out()
Code that generates error: tfidf = vectorizer.fit_transform(data) tokens = vectorizer.get_feature_names_out()
Error: Attribute Error: tfidfvectorizer does not have attribute 'get_feature_names_out'