IBM/nl2ltl

Issue with Rasa Engine

rtk29 opened this issue · 5 comments

rtk29 commented

Hi,

I have some problems with using the Rasa Engine for my use case. The error is "ModelNotFound: Model None can not be loaded."

Can you please help me with resolving this issue ?

The Note in the readme file says that a tar file is required for this. But I am not able to fix this issue.

Hi, @rtk29!

In the repo, under the nl2ltl/engines/rasa/models/ folder, there is a pre-trained model nlu-2023...curve.tar.gz. Have you tried explicitly specifying the model during the initialization of the Rasa engine?

The following minimal example works on my machine:

from nl2ltl import translate
from nl2ltl.engines.rasa.core import RasaEngine
from nl2ltl.engines.utils import pretty

rasa = RasaEngine(model="/Users/francesco/Projects/nl2ltl/nl2ltl/engines/rasa/models/nlu-20230608-135823-concave-curve.tar.gz")

utterance = "Eventually send me a Slack after receiving a Gmail"
ltlf_formulas = translate(utterance, rasa)
pretty(ltlf_formulas)
rtk29 commented

Hi @francescofuggitti,

Specifying the model during initialization worked. Thank you for that. However, I tried to see how the translation works with the same prompt used(i.e. the same above code), and it gives me an error like :
image

After cloning the repo, I ran this piece of code in a Jupyter notebook present in the same directory of the repo. Are there any other dependencies that I am missing?

Regards,
Raviteja

Hi @rtk29,

the error seems like something internal to Rasa. Please make sure you have the latest Rasa installed in your environment. The code above works with rasa==3.5.11.

rtk29 commented

Hi @francescofuggitti,

It gives me the same error even after using the latest Rasa version 3.5.11"

"No module named 'scipy.sparse._coo'" is an other error that is causing an exception and resulting in the below error. Do we need to any other dependencies to resolve this or switch to any other versions?

Steps performed to reproduce (Using Jupyter notebook):

  1. Installed nl2ltl pyPI package
  2. Installed latest version of rasa 3.5.11
  3. Ran the sample code present in the readme file with explicitly specifying the model during initialization.

Issue due to conflicts b/w Jupyter notebooks and Rasa.