Closed ytiam closed 2 years ago
@ytiam You can override the default cache directory by setting ALLENNLP_CACHE_ROOT
in your environment to a different path.
Thanks @AkshitaB , basically I need to do the entire operation staying inside a Notebook only and no command line access for me as an user, as per organizational security constraints. Can you please help me with the settings to do the same from a notebook? Thanks again
@AkshitaB
I just ran
%env ALLENNLP_CACHE_ROOT=/home/dataiku/allennlp_model_path
from a notebook cell. and then I checked,
os.getenv("ALLENNLP_CACHE_ROOT")
and it is giving the path as "/home/dataiku/allennlp_model_path"
But still I am getting the same error for the Predictor.from_path api.
@ytiam So, it still takes the older, default directory path? Can you confirm that you set the environment variable before importing any allennlp modules?
@AkshitaB as you suggested, I did the env path setting before importing the module and in that way it worked. Thanks for all the help.
@ytiam Great!
Hi all, I am using Dataiku platform for my project developement and there I need allennlp in my pipeline. But while using the Predictor.from_path api, I am basically facing a Permission Denied issue, as Dataiku is not allowing to create the CACHE_ROOT directory ".allennlp" under its root folder. Please see the below error.
PermissionError Traceback (most recent call last)