def train_nlu(data, args, model_dir):
    training_data = load_data(data)
    trainer = Trainer(config.RasaNLUModelConfig(args))
    trainer.train(training_data)
    model_directory = trainer.persist(model_dir, fixed_model_name='weathernlu')
def test_default_config_file():
    final_config = config.RasaNLUModelConfig()
    assert len(final_config) > 1