chiphuyen / sotawhat

Returns latest research results by crawling arxiv papers and summarizing abstracts. Helps you stay afloat with so many new papers everyday.
https://huyenchip.com/2018/10/04/sotawhat.html
1.35k stars 178 forks source link

pyenchant: I am no longer actively maintaining this project. #7

Closed Sandy4321 closed 6 years ago

Sandy4321 commented 6 years ago

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\

Sandy4321 commented 6 years ago

and from https://www.abisource.com/download/ image

Sandy4321 commented 6 years ago

anaconda also have only for linux https://anaconda.org/search?q=pyenchant

chiphuyen commented 6 years ago

I guess I can find a package to replace it. Let me look into it. Thanks!

Sandy4321 commented 6 years ago

did you managed to do this?

Sandy4321 commented 6 years ago

hopefully soon

Sandy4321 commented 6 years ago

today?

LeenaShekhar commented 6 years ago

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  

Sandy4321 commented 6 years ago

thanks can you check code this way?

Sandy4321 commented 6 years ago

can you changer code this way?

chiphuyen commented 6 years ago

Switched to pyspellchecker. Thanks!