downloading error using nltk.download()

前端 未结 4 1489
孤城傲影
孤城傲影 2020-12-05 15:15

I am experimenting NLTK package using Python. I tried to downloaded NLTK using nltk.download(). I got this kind of error message. How to solve this problem? Tha

4条回答
  •  囚心锁ツ
    2020-12-05 15:29

    I had this error:

    Resource punkt not found. Please use the NLTK Downloader to obtain the resource: import nltk nltk.download('punkt')
    

    When I tried to solve by writing:

    import nltk
    
    nltk.download()
    

    my computer shut downs suddenly and anaconda also closed. When I try to open it always shows an error.

    I solved the problem by writing:

    import nltk
    
    nltk.download('punkt')
    

提交回复
热议问题