当前位置:   article > 正文

nltk与spacy的安装_python中的nltk库与spay库

python中的nltk库与spay库

一、NLTK安装

win + R  cmd 进入命令行,输入Python,输入:import nltk

执行nltk.download()

双击all 即下载,过程中可能会出现下载失败的问题,只需要重新手动双击未下载成功的identifier即可。

二、安装spacy

Solution1: conda安装(我没用)

在conda命令行中输入如下命令即可安装spacy:

  1. conda config --add channels conda-forge
  2. conda install spacy
  3. python -m spacy.en.download
  4. python -m spacy download en

Solution2:

https://blog.csdn.net/qq_41623768/article/details/81939236

https://blog.csdn.net/cuofucsdn/article/details/78803501

----------------------------------------------------------------------------------------------------------

Python3 中 "Failed building wheel for xxx" 的解决办法

https://blog.csdn.net/qq_39973546/article/details/80148206

----------------------------------------------------------------------------------------------------------------------------

Cannot uninstall 'urllib3'. It is a distutils installed project and thus we cannot accurately determ

https://blog.csdn.net/u013066730/article/details/84326246

----------------------------------------------------------------------------------------------------------------------------------

pip安装:Cannot uninstall https://blog.csdn.net/x_kh_2001/article/details/81146916

--------------------------------------------------------------------------------------

!!!import spacy的时候一直报错缺少一个模块,然后加载那个模块后又报错缺少另一个模块。最后。。。

https://blog.csdn.net/github_36326955/article/details/81069807

https://spacy.io/models/en#section-en_core_web_sm

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/343394
推荐阅读
相关标签
  

闽ICP备14008679号