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.
子類對象實例化全過程
2.
【Unity2DMobileGame_PirateBomb09】—— 設置基本敵人
3.
SSIS安裝以及安裝好找不到商業智能各種坑
4.
關於 win10 安裝好的字體爲什麼不能用 WebStrom找不到自己的字體 IDE找不到自己字體 vs找不到自己字體 等問題
5.
2019版本mac電腦pr安裝教程
6.
使用JacpFX和JavaFX2構建富客戶端
7.
MySQL用戶管理
8.
Unity區域光(Area Light) 看不見光線
9.
Java對象定位
10.
2019-9-2-用自動機的思想說明光速
本站公眾號
歡迎關注本站公眾號,獲取更多信息
相關文章
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'
>>更多相關文章<<