Resource u'tokenizers/punkt/english.pickle' not found

前端 未结 17 2056
粉色の甜心
粉色の甜心 2020-12-13 01:49

My Code:

import nltk.data
tokenizer = nltk.data.load(\'nltk:tokenizers/punkt/english.pickle\')

ERROR Message:

[ec2-user@ip-         


        
17条回答
  •  粉色の甜心
    2020-12-13 02:31

    Simple nltk.download() will not solve this issue. I tried the below and it worked for me:

    in the nltk folder create a tokenizers folder and copy your punkt folder into tokenizers folder.

    This will work.! the folder structure needs to be as shown in the picture

提交回复
热议问题