Zeta-and-Company / pydistinto

pydistinto - a Python implementation of different measures of distinctiveness for contrastive text analysis
9 stars 6 forks source link

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

Open hennyu opened 1 year ago

hennyu commented 1 year ago

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 commented 1 year ago

Another instance of the error for the TfidfVectorizer: grafik

hennyu commented 1 year ago

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