NLTK download SSL: Certificate verify failed

后端 未结 12 2033
面向向阳花
面向向阳花 2020-12-08 00:38

I get the following error when trying to install Punkt for nltk:

nltk.download(\'punkt\')    
 [nltk_data] Error loading Punkt: 

        
12条回答
  •  自闭症患者
    2020-12-08 00:50

    The downloader script is broken. As a temporal workaround can manually download the punkt tokenizer from here and then place the unzipped folder in the corresponding location. The default folders for each OS are:

    • Windows: C:\nltk_data\tokenizers
    • OSX: /usr/local/share/nltk_data/tokenizers
    • Unix: /usr/share/nltk_data/tokenizers

提交回复
热议问题