Open sathishkv81 opened 5 years ago
The error seems to be due to the data format of data.json
.
This demo was written back when rasa
was split into rasa_nlu
and rasa_core
.
Therefore, you might want to check the most recent Rasa documentation and make sure that your data file (including the field identifier strings) is compatible with the most recent version.
Hope it helps
@sathishkv81
Did you resolve the data format issue. I am getting the same error while training the model
Thanks
Hi,
I'm learning Rasa and downloaded a sample project. When I run the training model, I get the '-'data format error'. I reviewed the json file and also validated the syntax on jsonlint, but could not find any errors. Can you please help resolve the issue. I've attached the json and the .py file.
$ python nlu_model.py Traceback (most recent call last): File "nlu_model.py", line 26, in
model_directory = train_nlu('./data/data.json', 'config_spacy.yml', './models/nlu')
File "nlu_model.py", line 14, in train_nlu
training_data = load_data(data)
File "c:\cygwin64\home\svenugopal\rasa_nlu-master\rasa\nlu\training_data\loading.py", line 52, in load_data
data_sets = [_load(f, language) for f in files]
File "c:\cygwin64\home\svenugopal\rasa_nlu-master\rasa\nlu\training_data\loading.py", line 52, in
data_sets = [_load(f, language) for f in files]
File "c:\cygwin64\home\svenugopal\rasa_nlu-master\rasa\nlu\training_data\loading.py", line 110, in _load
raise ValueError("Unknown data format for file {}".format(filename))
ValueError: Unknown data format for file ./data/data.json
Thanks, nlu_model.zip