Why this is not working?
from sklearn.feature_extraction.text import CountVectorizer bow = CountVectorizer() X = bow.transform(["pippo","pluto"]) X.shape
I have the following error:
CountVectorizer - Vocabulary wasn't fitted. AppData\Local\Programs\Python\Python36\lib\site-packages\sklearn\utils\validation.py", line 951, in check_is_fitted raise NotFittedError(msg % {'name': type(estimator).__name__})`
https://stackoverflow.com/questions/65741120/countvectorizer-vocabulary-wasnt-fitted January 16, 2021 at 01:49AM
没有评论:
发表评论