暴力解決NLTK下載問題

問題描述 在使用NLTK包的分詞器word_tokenize時報錯,下面就是原始報錯信息,大意就是沒有’punkt’這個資源,讓我們用他提示的代碼下載。 Resource punkt not found. Please use the NLTK Downloader to obtain the resource: import nltk nltk.download(‘punkt’) For mor
相關文章
相關標籤/搜索