Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'CountVectorizer' object has no attribute 'get_feature_names' #7

Open
hennyu opened this issue May 28, 2023 · 2 comments

Comments

@hennyu
Copy link

hennyu commented May 28, 2023

When running run_pydistinto_beginners.py, I get another error saying that the attribute "get_feature_names" of "CountVectorizer" is not found. I have Python3.10.6 on Ubuntu 22.04.2 LTS
grafik

@hennyu
Copy link
Author

hennyu commented May 28, 2023

Another instance of the error for the TfidfVectorizer:
grafik

@hennyu
Copy link
Author

hennyu commented May 28, 2023

And a type error later on which I don't know how to solve (after replacing get_feature_names with get_feature_names_out in the above cases):
grafik

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant