You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unfortunately, NLTK dependencies are downloaded during the import phase, therefore, making it very difficult to configure nltk data paths and download directories beforehand.
I think simply moving the following code to from the top level to the G2p object initialization should solve the issue.
Maybe we could also provide nltk_data_diretcory as an optional argument and pass it to nltk.download invocations?
The text was updated successfully, but these errors were encountered:
tmiskow
changed the title
Nltk dependencies are downloaded during the import phase
NLTK dependencies are downloaded during the import phase
Apr 6, 2020
Unfortunately, NLTK dependencies are downloaded during the import phase, therefore, making it very difficult to configure nltk data paths and download directories beforehand.
I think simply moving the following code to from the top level to the
G2p
object initialization should solve the issue.Maybe we could also provide
nltk_data_diretcory
as an optional argument and pass it tonltk.download
invocations?The text was updated successfully, but these errors were encountered: