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.
正確理解商業智能 BI 的價值所在
2.
解決梯度消失梯度爆炸強力推薦的一個算法-----LSTM(長短時記憶神經網絡)
3.
解決梯度消失梯度爆炸強力推薦的一個算法-----GRU(門控循環神經⽹絡)
4.
HDU4565
5.
算概率投硬幣
6.
密碼算法特性
7.
DICOMRT-DiTools:clouddicom源碼解析(1)
8.
HDU-6128
9.
計算機網絡知識點詳解(持續更新...)
10.
hods2896(AC自動機)
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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'
>>更多相關文章<<