Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The enchant package no longer supports French #1

Open
DerXter opened this issue Aug 22, 2023 · 2 comments
Open

The enchant package no longer supports French #1

DerXter opened this issue Aug 22, 2023 · 2 comments

Comments

@DerXter
Copy link

DerXter commented Aug 22, 2023

Line 19 of utils/helper.py calls the enchant.Dict('fr') instruction. However, after installing the enchant-2 library via apt-get under Ubuntu, on which pip's pyenchant depends, the latter returns False when executing the enchant.dict_exists("fr") instruction and does not list French (tag "fr") when executing the enchant.list_languages() instruction.

Consequently, testing the corrector via the python command autocorrector.py path/to/file returns an enchant.errors.DictNotFoundError: Dictionary for language 'fr' could not be found error.

Note: It would also be helpful to specify the structure of the file to be tested. Is it one sentence per line, one word per line!? etc.

@TiDev00
Copy link
Owner

TiDev00 commented Oct 5, 2023

Thank you for flagging the issue. I am going to work on it.
Note that you can use whatever structure you want for the text.

@DerXter
Copy link
Author

DerXter commented Oct 6, 2023

You're welcome master. Thanks for the information!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants