Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What should I do if nltk.download () can't download ​

Shulou Source: shulou.com Published: 2022-06-01 13:45:41 09月26日 Update

This article will explain in detail what to do if you can't download nltk.download (). The content of the article is of high quality, so the editor will share it with you for reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

What if nltk.download () can't be downloaded?

1. Install the nltk library pip install nltk

2. Download nltk_data.zip

Link: https://pan.baidu.com/s/1oGgMCvWEvnUviWjneWmNNA password: j643

Download and decompress nltk_data for backup

3. Nltk configure import nltk

Nltk.download ()

Run the code and a pop-up box will pop up on the screen

You can see the storage address in the pop-up box

Move nltk_data to the storage directory

4. test

Use the disabled thesaurus as the criterion for testing whether the nltk is configured successfully

From nltk.corpus import stopwords

Chinese_stopwords = stopwords.words ('chinese')

Chinese_stopwords on nltk.download () can not download what to do to share here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Tags: What to do content article more knowledge article storage test configuration good success code address password screen standard directory vocabulary quality link Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple MySQL Shulou Information Redmi