NLTK:Resource punkt not found. Please use the NLTK Downloader to obtain the resource

打開cmd,輸入python進入python命令行: 輸入如下指令: import nltk nltk.download() 之後會彈出這個界面:選擇Models選項卡,找到punkt選項,選擇Download下載下來; 回去重新運行文件,就不會報錯啦~
相關文章
相關標籤/搜索