def persist(self, model_dir):
“”“Persist this model into the passed directory.”""
similarity_file = os.path.join(model_dir, SIMILARITY_MODEL_FILE_NAME)
utils.json_pickle(similarity_file, self)
return {“similarity_file”: SIMILARITY_MODEL_FILE_NAME}
Hi, when implementing the sentiment analysis component and training keep getting the error: AttributeError: module ‘rasa.utils’ has no attribute ‘json_pickle’.
I did import utils from rasa.nlu still getting the error:
from rasa.nlu import utils
Tried with rasa versions 1.9.0 and 1.10.0
Tried to use python pickle module as well but no luck yet. Any specific thing that I am missing?