[英]COLAB ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output
Could anyone please help me to fix this?谁能帮我解决这个问题? I am trying to install pyenchant in colab to perform a possible suggestion if a word is spelled wrongly.
如果单词拼写错误,我正在尝试在 colab 中安装 pyenchant 以执行可能的建议。 I would like to use
pyenchant
.我想使用
pyenchant
。 This is what I tried;这就是我尝试过的;
!pip install pyenchant==1.6.8
but it output the following error;但它 output 出现以下错误;
ERROR: Command errored out with exit status 1: python setup.py egg_info Check the logs for full command output.
My idea is to get some possible suggestion if a word is wrong, I plan to do the following我的想法是如果一个词错了就得到一些可能的建议,我打算做以下事情
import enchant
test = enchant.Dict("en_US")
test.suggest("Posible")
Could anyone suggest how can I achieve this?谁能建议我如何做到这一点? I am working on colab.
我正在研究colab。 Please help me on how to install
pyenchant
in colab or any other possible way I can achieve possible suggestion if a word is wrong.请帮助我了解如何在 colab 中安装
pyenchant
或任何其他可能的方式,如果一个词是错误的,我可以获得可能的建议。
Another possibility based on NLTK without enchant is NLTK's words corpus另一种基于NLTK没有附魔的可能性是NLTK的单词语料库
>>> from nltk.corpus import words
>>> "would" in words.words()
True
>>> "could" in words.words()
True
>>> "should" in words.words()
True
>>> "I" in words.words()
True
>>> "you" in words.words()
True
Or if you still want to use enchant https://stackoverflow.com/a/57444274/11339475 Have look at this solution, It has already been addressed.或者如果你仍然想使用附魔https://stackoverflow.com/a/57444274/11339475看看这个解决方案,它已经解决了。
You need to install with apt first你需要先用apt安装
!apt install enchant
Then with pip然后用 pip
!pip install pyenchant
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.