NLTK download SSL: Certificate verify failed

后端 未结 12 1956
面向向阳花
面向向阳花 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:49

    First go to the path /Applications/Python 3.6/ and run Install Certificates.command

    You will admin rights for the same.

    If you are unable to download it, then as other answer suggest you can download directly and place it. You need to place them in the following directory structure.

    > nltk_data
              > corpora
                       > brown
                       > conll2000
                       > movie_reviews
                       > wordnet
              > taggers
                       > averaged_perceptron_tagger
              > tokenizers
                          > punkt
    

提交回复
热议问题