jieba icon indicating copy to clipboard operation
jieba copied to clipboard

关于Couectorizer

Open unforgivenhg opened this issue 4 years ago • 2 comments

你好,有个问题请教一下,在 ../jieba_master/test/extract_topic.py 中,from sklearn.feature_extraction.text import Couectorizer 这块报错,我的系统是 win10x64,numpy 是 1.19.3,scipy 是 1.5.4,joblib 是 1.0.0,sklearn 是 0.24.0,都已经安装好了,但是关于 Couectorizer 报错cannot import name 'Couectorizer',我想请教一下这是怎么回事,谢谢解答,不胜感激……🙏

unforgivenhg avatar Dec 27 '20 17:12 unforgivenhg

也许是sklearn版本太高了吧,官方0.10版本,我看sklearn.feature_extraction.text这个地方没有相关Couectorizer定义了 错误,你本地代码是不是修改过了?正确的是from sklearn.feature_extraction.text import CountVectorizer

returnWOW avatar Jan 05 '21 03:01 returnWOW

也许是sklearn版本太高了吧,官方0.10版本,我看sklearn.feature_extraction.text这个地方没有相关Couectorizer定义了 错误,你本地代码是不是修改过了?正确的是from sklearn.feature_extraction.text import CountVectorizer

好的,谢谢🙇‍,我修改以后好了,可能是之前我哪里碰到不小心删了两个字符。🙏🙏

unforgivenhg avatar Jan 06 '21 04:01 unforgivenhg