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

前端 未结 17 2090
粉色の甜心
粉色の甜心 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:21

    To add to alvas' answer, you can download only the punkt corpus:

    nltk.download('punkt')
    

    Downloading all sounds like overkill to me. Unless that's what you want.

提交回复
热议问题