i want to load two separate models with one interpreter . I have already trained models and kept them in two different directories now what i want is to load bith the models at once Thanks in advance
What kind of models? And which Rasa version are you using?
I am using rasa-nlu==0.15.1 I am training the bot using rasa with pipeline space_sklearn through python I am training the bot
import spacy #nlp=spacy.load(‘en’) import subprocess from rasa_nlu.training_data import load_data from rasa_nlu.config import RasaNLUModelConfig from rasa_nlu.model import Trainer from rasa_nlu import config from rasa_nlu.model import Metadata, Interpreter import time training_data=load_data(“data/dt/geo_train.json”)
#config backend using spacy and sklearn trainer= Trainer(config.load(“config_spacy.yml”))
print (“time.ctime() : %s” % time.ctime())
trainer.train(training_data)
print (“time.ctime() : %s” % time.ctime())
#directory to store our model model_directory= trainer.persist("./projects/")
#making predictions owth the model interpreter= Interpreter.load(model_directory)
see my code
and what I want is I will train two different models and interpreter should give the prediction from both the models
that’s not possible. You can load up multiple models into memory with the projects feature, but they won’t make predictions at the same time