def train_nlu(data, configs, model_dir):
training_data = load_data(data)
trainer = Trainer(config.load(configs))
trainer.train(training_data)
model_directory = trainer.persist(model_dir, fixed_model_name='weathernlu')
return model_directory
def run_nlu(model_dir):
interpreter = Interpreter.load(model_dir)
print(interpreter.parse("hello"))
I want to load multiple models to run. how can I use Interpreter to load multiple models in my python program?