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.
Mud Puddles ( bfs )
2.
ReSIProcate環境搭建
3.
SNAT(IP段)和配置網絡服務、網絡會話
4.
第8章 Linux文件類型及查找命令實踐
5.
AIO介紹(八)
6.
中年轉行互聯網,原動力、計劃、行動(中)
7.
詳解如何讓自己的網站/APP/應用支持IPV6訪問,從域名解析配置到服務器配置詳細步驟完整。
8.
PHP 5 構建系統
9.
不看後悔系列!Rocket MQ 使用排查指南(附網盤鏈接)
10.
如何簡單創建虛擬機(CentoOS 6.10)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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'
>>更多相關文章<<