解決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.再次執行,即可成功,程式碼正在執行。
相關文章
- Access restriction: The type 'Resource' is not API 解決辦法RESTAPI
- Caused by: org.apache.ibatis.binding.BindingException: Parameter 'parameter' not found.解決ApacheBATException
- 解決Parameter '__frch_item_0' not found. Available parameters 問題AI
- Laravel Resource Routes和API Resource Routes講解LaravelAPI
- SpringBoot 專案打包後獲取不到resource下資源的解決Spring Boot
- InnoDB: No valid checkpoint found.
- @Resource 與 @Service註解的區別
- @Autowire和@Resource註解的區別
- 解決程式中Error creating bean with name 'XXXXX‘ defined in class path resource [application的異常ErrorBeanAPP
- spingboot使用@Resource注入靜態變數報空指標的問題解決boot變數指標
- A valid provisioning profile for this executable was not found.
- 聊聊依賴注入註解@Resource和@Autowired依賴注入
- 完美解決未能正確載入“Visual C++ Resource Editor Package”的錯誤提示C++Package
- Unable to negotiate with xx.xxx.xxxx port 22: no matching host key type found. Their offer: ssh-rsa(解決的兩種方式)Go
- @Resource,@Autowired,@Inject3種注入方式詳解
- Plugin with id 'com.android.application' not found.PluginAndroidAPP
- 【譯】Resource Hints
- DRM - Dynamic Resource MasteringAST
- Android resource linking failedAndroidAI
- Metasploit resource命令技巧
- Spring系列.Resource介面Spring
- org.apache.ibatis.binding.BindingException: Parameter 'xxx' not found.ApacheBATException
- No suitable application records were found. Verify your bundle ideUIAPPIDE
- ssh 遠端登入報錯:Unable to negotiate with IP port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss 解決辦法Go
- vue_resource和axiosVueiOS
- Resource is out of sync with the file system
- Error-Expected resource of typeError
- profile的resource limits和資源計劃resource_manager_plan的limitMIT
- Javascript類庫:vue.js中的vue-resource示例詳解JavaScriptVue.js
- PHP 5.4 編譯 configure: error: libXpm.(a|so) not found.PHP編譯Error
- [求助][iOS] 獲取 iOS 應用的 crash 報告,cpu_resource/diskwrites_resource/wakeups_resource 這些型別的如何分析iOS型別
- ApiBoot - ApiBoot Resource Load 使用文件APIboot
- Eclipse:Resource is out of sync with the file systemEclipse
- @Autowired 與@Resource的區別
- 2.7 Overview of Oracle Resource Manager in a CDBViewOracle
- Caused by: Error: ' ' is not a valid resource name characterError
- The bean ‘xxx‘, defined in class path resource , ......Bean
- Matrix原始碼分析————Resource Canary原始碼