JavaShuo
栏目
标签
tfidf里面遇到的‘list’ object has no attribute 'lower'问题
时间 2021-01-02
标签
python
栏目
Python
繁體版
原文
原文链接
出现问题 TfidfVectorizer对象实例化的时候 fit时候的数据出现问题 可以看到test(数据)是list套list,而所需要的数据是可迭代对象里面为str 改成[‘是要 申报… 谢谢你’,‘xx xx xx’,’’…]这种形式 把里面的[]去掉,取出来改为str类型即可解决这个问题
>>阅读原文<<
相关文章
1.
'list' object has no attribute 'click'问题
2.
AttributeError: 'list' object has no attribute 'as_datatype_enum'
3.
appium中遇到AttributeError: 'WebDriver' object has no attribute 'contexts'的问题
4.
【问】AttributeError: 'int' object has no attribute 'replace'???????
5.
AttributeError: ‘CeleryCommand‘ object has no attribute ‘preload_options‘
6.
AttributeError: 'NoneType' object has no attribute 'astyp
7.
【问题】Keras AttributeError: 'Tensor' object has no attribute '_keras_history'
8.
问题:'NoneType' object has no attribute 'encoding'
9.
AttributeError: 'dict' object has no attribute 'encode'
10.
pythonBug记录:AttributeError: 'list' object has no attribute 'endswith'
更多相关文章...
•
C# 特性(Attribute)
-
C#教程
•
Redis乐观锁解决高并发抢红包的问题
-
红包项目实战
•
使用阿里云OSS+CDN部署前端页面与加速静态资源
•
PHP Ajax 跨域问题最佳解决方案
相关标签/搜索
遇到的问题
attribute
tfidf
lower
遇到
安装Ubuntu 遇到问题
object...object
object
面试问题
list
Python
NoSQL教程
PHP教程
Hibernate教程
面试
阿里云
0
分享到微博
分享到微信
分享到QQ
每日一句
每一个你不满意的现在,都有一个你没有努力的曾经。
最新文章
1.
微软准备淘汰 SHA-1
2.
Windows Server 2019 Update 2010,20H2
3.
Jmeter+Selenium结合使用(完整篇)
4.
windows服务基础
5.
mysql 查看线程及kill线程
6.
DevExpresss LookUpEdit详解
7.
GitLab简单配置SSHKey与计算机建立连接
8.
桶排序(BucketSort)
9.
桶排序(BucketSort)
10.
C++ 桶排序(BucketSort)
本站公众号
欢迎关注本站公众号,获取更多信息
相关文章
1.
'list' object has no attribute 'click'问题
2.
AttributeError: 'list' object has no attribute 'as_datatype_enum'
3.
appium中遇到AttributeError: 'WebDriver' object has no attribute 'contexts'的问题
4.
【问】AttributeError: 'int' object has no attribute 'replace'???????
5.
AttributeError: ‘CeleryCommand‘ object has no attribute ‘preload_options‘
6.
AttributeError: 'NoneType' object has no attribute 'astyp
7.
【问题】Keras AttributeError: 'Tensor' object has no attribute '_keras_history'
8.
问题:'NoneType' object has no attribute 'encoding'
9.
AttributeError: 'dict' object has no attribute 'encode'
10.
pythonBug记录:AttributeError: 'list' object has no attribute 'endswith'
>>更多相关文章<<