解決nltk_data LookupError: Resource punkt not found.
nltk_data LookupError: Resource punkt not found.Please use the NLTK Downloader to obtain the resource:
一、出現問題
命令列執行時出現問題:
使用建議的步驟nltk.download()無法下載,所以我選擇離線下載自己安裝。
二、解決方案
1.下載,網址: http://www.nltk.org/nltk_data/.
2.安裝,第三個:
3.將檔案解壓到以下任意檔案中:
Attempted to load tokenizers/punkt/PY3/english.pickle
Searched in:
- '/home/user/nltk_data'
- '/home/user/anaconda3/envs/wxy/nltk_data'
- '/home/user/anaconda3/envs/wxy/share/nltk_data'
- '/home/user/anaconda3/envs/wxy/lib/nltk_data'
- '/usr/share/nltk_data'
- '/usr/local/share/nltk_data'
- '/usr/lib/nltk_data'
- '/usr/local/lib/nltk_data'
- ''
**********************************************************************
4.檔案放置的時候要注意資料夾的格式(新建資料夾nltk_data, tokenizers)
我選擇了 '/home/user/anaconda3/envs/wxy/nltk_data’這個路徑,如圖:
5.再次執行,即可成功,程式碼正在執行。
相關文章
- 解決 CRS-2640: Required resourceUI
- ORA-25507: resource 解決方法
- Access restriction: The type 'Resource' is not API 解決辦法RESTAPI
- 解決Parameter '__frch_item_0' not found. Available parameters 問題AI
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- su cannot set user id Resource temporarily unavailable故障解決AI
- Myeclipse:resource is out of sync with the file system的解決辦法Eclipse
- Caused by: org.apache.ibatis.binding.BindingException: Parameter 'parameter' not found.解決ApacheBATException
- ora-00054:resource busy and acquire with nowait specified解決方法UIAI
- 解決eclipse中出現Resource is out of sync with the file system問題Eclipse
- _resource_manager_always_on=FALSE引起排程異常的解決案例False
- "ORA-00054 resource busy and acquire with NOWAIT specified"的解決方法UIAI
- express: command not found.Express
- 解決Eclipse/STS 中出現Resource is out of sync with the file system 的異常Eclipse
- Drawable Resource 之旅(一):BitmapDrawable 詳解
- Could not open ServletContext resource [/WEB-INF/applicationContext.xml]解決ServletContextWebAPPXML
- @Resource 與 @Service註解的區別
- @Autowire和@Resource註解的區別
- SpringBoot 專案打包後獲取不到resource下資源的解決Spring Boot
- 異常解決 java.io.FileNotFoundException: class path resource [spring/springmvc.xml]JavaExceptionSpringMVCXML
- 關於Linux主機報錯(Resource temporarily unavailable)的解決辦法LinuxAI
- 聊聊依賴注入註解@Resource和@Autowired依賴注入
- spingboot使用@Resource注入靜態變數報空指標的問題解決boot變數指標
- 【kingsql分享】解決RAC大量UNKNOWN和CRS-0216: Could not stop resourceSQL
- Spring5:@Autowired註解、@Resource註解和@Service註解Spring
- 完美解決未能正確載入“Visual C++ Resource Editor Package”的錯誤提示C++Package
- @Resource,@Autowired,@Inject3種注入方式詳解
- 解決Android中No resource found that matches android:TextAppearance.Material.Widget.Button.Inverse問題AndroidAPP
- DB2:ksh: db2: not found.DB2
- 【譯】Resource Hints
- RESOURCE_LIMITMIT
- Plugin with id 'com.android.application' not found.PluginAndroidAPP
- 使用vue-axios和vue-resource解決vue中呼叫網易雲介面跨域的問題VueiOS跨域
- Metasploit resource命令技巧
- Oracle Database Resource ManagerOracleDatabase
- vue-resource 小抄Vue
- Resource temporarily unavailableAI
- Oracle simple resource planOracle