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

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

    I got the solution:

    import nltk
    nltk.download()
    

    once the NLTK Downloader starts

    d) Download l) List u) Update c) Config h) Help q) Quit

    Downloader> d

    Download which package (l=list; x=cancel)? Identifier> punkt

提交回复
热议问题