Use a trained model

I am curious about How to use an already trained model using python code externally.

For example, I have a trained DIET or Spacy model => abcd.tar.gz. Now how to use that model in google colab ?

Hi Palash,

it depends on what you mean by “use” exactly but there’s a demo in rasalit that you might like. That project contains a live-nlu app (here) that can load in a model saved on disk such that you can interact with it.

If you look at the implementation (this file and this file) then you can see how it is implemented. The main thing that needs to happen is you have to load the rasa interpreter, give the the model file and then it can look at the text that you give it. It will parse it and return the NLU information.