Chaquopy Not Able To Download Nltk Resource
I am attempting to live download required packages for nltk using the chaquopy tool on android. I am attempting to download the models into a specific data directory like so: from
Solution 1:
Try updating to Chaquopy 4.0.0 or newer. These versions set the HOME
environment variable to your app's files directory, and NLTK will automatically create an nltk_data subdirectory there. Then there will no longer be any need to use the NLTK_DATA
environment variable, or the download_dir
parameter, and that code should all be removed.
(If you're already using Chaquopy 4.0.0 or newer, please add a comment with your versions of Chaquopy and NLTK.)
Because of an emulator bug, you may need to call nltk.download
in a loop, as described in this answer.
Post a Comment for "Chaquopy Not Able To Download Nltk Resource"