Nlu_model.py of the latest release, gives the following error :
Traceback (most recent call last):
File "nlu_model.py", line 15, in <module>
train_nlu('./data/data.json', 'config_spacy.json', './models/nlu')
File "nlu_model.py", line 8, in train_nlu
trainer = Trainer(config.load(configs))
File "C:\Users\lenox\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_nlu\config.py", line 51, in load
return RasaNLUModelConfig(file_config)
File "C:\Users\lenox\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_nlu\config.py", line 119, in __init__
self.override(configuration_values)
File "C:\Users\lenox\AppData\Local\Programs\Python\Python36\lib\site-packages\rasa_nlu\config.py", line 196, in override
** self.__dict__.update(config)
ValueError: dictionary update sequence element #0 has length 1; 2 is required**
Here is the nlu_model file :
from rasa_nlu.training_data import load_data
from rasa_nlu import config
from rasa_nlu.model import Trainer
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')
if __name__ == '__main__':
train_nlu('./data/data.json', 'config_spacy.json', './models/nlu')
Nlu_model.py of the latest release, gives the following error :
Here is the nlu_model file :