I’m trying to train & run an NLU model from jupyter but can’t get the run part working. Training works fine:
import nest_asyncio nest_asyncio.apply() from rasa.train import train_nlu model_path = train_nlu("config.yml", "data/nlu.yml", "models/")
I now want to run the trained nlu model on some sample utterances and get the interpreted intents and named entities. I tried this:
from rasa.nlu.model import Interpreter interpreter = Interpreter.load("models/")
However it gives the following error:
FileNotFoundError: [Errno 2] No such file or directory: 'models/metadata.json'
I can’t find a
metadata.json file on the file system, although there is one inside the gzippe’d model archive. Do I need to unzip the archive?
I had a look at the jupyter page and a dig through the reference docs but couldn’t find anything. Any help appreciated.