Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nlu_Model - dictionary update sequence element #0 has length 1; 2 is required - error #78

Open
archimedesistanbul opened this issue Apr 2, 2019 · 0 comments

Comments

@archimedesistanbul
Copy link

archimedesistanbul commented Apr 2, 2019

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')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant