Created
September 30, 2018 05:17
-
-
Save nahidalam/fd835c81b511600c3127647c91d9811f to your computer and use it in GitHub Desktop.
training the NLU model with Rasa
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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