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.
Line 19 of utils/helper.py calls the
enchant.Dict('fr')instruction. However, after installing the enchant-2 library viaapt-getunder Ubuntu, on which pip's pyenchant depends, the latter returns False when executing theenchant.dict_exists("fr")instruction and does not list French (tag "fr") when executing theenchant.list_languages()instruction.Consequently, testing the corrector via the python command
autocorrector.py path/to/filereturns anenchant.errors.DictNotFoundError: Dictionary for language 'fr' could not be founderror.