nltk
Resource averaged_perceptron_tagger not found. Please use the NLTK Downloader to obtain the resource:
import nltk nltk.download('averaged_perceptron_tagger')
For more information see: https://www.nltk.org/data.html
Attempted to load taggers/averaged_perceptron_tagger/averaged_perceptron_tagger.pickle
Searched in: - 'C:\Users\Aodian/nltk_data' - 'C:\ProgramData\Anaconda3\envs\torch\nltk_data' - 'C:\ProgramData\Anaconda3\envs\torch\share\nltk_data' - 'C:\ProgramData\Anaconda3\envs\torch\lib\nltk_data' - 'C:\Users\Aodian\AppData\Roaming\nltk_data' - 'C:\nltk_data' - 'D:\nltk_data' - 'E:\nltk_data'
Process finished with exit code 1
一直提示这个错误,我也根据网上下载了这个包,然后位置也放了,但是也还是提示错误
在import nltk下一行加入这一行代码就行了