Skip to content

Instantly share code, notes, and snippets.

@nahidalam
Created September 30, 2018 05:17
Show Gist options
  • Save nahidalam/fd835c81b511600c3127647c91d9811f to your computer and use it in GitHub Desktop.
Save nahidalam/fd835c81b511600c3127647c91d9811f to your computer and use it in GitHub Desktop.
training the NLU model with Rasa
def train_nlu(data, configuration, model_dir):
training_data = load_data(data)
trainer = Trainer(config.load(configuration))
trainer.train(training_data)
model_directory = trainer.persist(model_dir, fixed_model_name = 'customernlu')
return model_directory
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment