Closed Sandy4321 closed 6 years ago
and from https://www.abisource.com/download/
anaconda also have only for linux https://anaconda.org/search?q=pyenchant
I guess I can find a package to replace it. Let me look into it. Thanks!
did you managed to do this?
hopefully soon
today?
If requirement is to just check whether the work is an English word or not then you can use NLTK itself. You can use the function below to check that.
from nltk.corpus import words as nltk_words
NLTK_DICT = dict.fromkeys(nltk_words.words(), None)
def is_english_word(word):
try:
x = [word]
return True
except KeyError:
return False
thanks can you check code this way?
can you changer code this way?
Switched to pyspellchecker. Thanks!
pyenchant is absolet, can you use another package pls https://github.com/rfk/pyenchant
it gives the error for installation on windows E:\AAA_new_Lenovo_start_sep_22_2018\scraping_web\Arxive_papers_oct5\sotawhat-master\sotawhat-master>pip install pyenchant Collecting pyenchant Downloading https://files.pythonhosted.org/packages/9e/54/04d88a59efa33fefb88133ceb638cdf754319030c28aadc5a379d82140ed/pyenchant-2.0.0.tar.gz (64kB) 100% |████████████████████████████████| 71kB 951kB/s Complete output from command python setup.py egg_info: Traceback (most recent call last): File "", line 1, in
File "C:\Users\sndr\AppData\Local\Temp\pip-install-ik9f5dml\pyenchant\setup.py", line 212, in
import enchant
File "C:\Users\sndr\AppData\Local\Temp\pip-install-ik9f5dml\pyenchant\enchant__init__.py", line 92, in
from enchant import _enchant as _e
File "C:\Users\sndr\AppData\Local\Temp\pip-install-ik9f5dml\pyenchant\enchant_enchant.py", line 145, in
raise ImportError(msg)
ImportError: The 'enchant' C library was not found. Please install it via your OS package manager, or use a pre-built binary wheel from PyPI.
Command "python setup.py egg_info" failed with error code 1 in C:\Users\sndr\AppData\Local\Temp\pip-install-ik9f5dml\pyenchant\