RSAN icon indicating copy to clipboard operation
RSAN copied to clipboard

nltk

Open chenjiawei22 opened this issue 4 years ago • 1 comments

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

一直提示这个错误,我也根据网上下载了这个包,然后位置也放了,但是也还是提示错误

chenjiawei22 avatar Oct 18 '21 05:10 chenjiawei22

在import nltk下一行加入这一行代码就行了

gao929165733 avatar Oct 18 '21 07:10 gao929165733