NLTK:Resource punkt not found. Please use the NLTK Downloader to obtain the resource:2步解決

打開CMD  命令進入Python交互模式 >>> import nltk >>> nltk.download() 會彈出一個界面,如圖:點擊Models ,雙擊punkt或者選擇點擊Download安裝完成就不會報錯了。
相關文章
相關標籤/搜索