RasaHQ / rasa_lookup_demo

Improving entity extraction from text using the lookup table feature in rasa_nlu
Apache License 2.0
52 stars 68 forks source link

ValueError: Unknown data format for file ./data/data.json #3

Open sathishkv81 opened 5 years ago

sathishkv81 commented 5 years ago

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

twhughes commented 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

rxpratap commented 5 years ago

@sathishkv81

Did you resolve the data format issue. I am getting the same error while training the model

Thanks