KeyError: 'meta' error when trying to train from DialogFlow model

I’ve downloaded my DialogFlow data, moved it to /data in my rasa project but when I run rasa train nlu or rasa data convert nlu --data data/DF --out data/ --format md, I get KeyError: 'meta'.

Full trace

File "/Users/someone/.pyenv/versions/3.7.1/bin/rasa", line 8, in <module> sys.exit(main()) File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/", line 116, in main cmdline_arguments.func(cmdline_arguments) File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/cli/", line 302, in _convert_nlu_data, args.out, args.format, args.language File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/nlu/", line 24, in convert_training_data td = rasa.shared.nlu.training_data.loading.load_data(data_file, language) File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/shared/nlu/training_data/", line 60, in load_data data_sets = [_load(f, language) for f in files] File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/shared/nlu/training_data/", line 60, in <listcomp> data_sets = [_load(f, language) for f in files] File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/shared/nlu/training_data/", line 112, in _load return, language=language, fformat=fformat) File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/shared/nlu/training_data/formats/", line 48, in read return self._read_intent(root_js, examples) File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/shared/nlu/training_data/formats/", line 60, in _read_intent text, entities = self._join_text_chunks(ex["data"]) File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/shared/nlu/training_data/formats/", line 72, in _join_text_chunks entity = self._extract_entity(chunk, len(utterance)) File "/Users/someone/.pyenv/versions/3.7.1/lib/python3.7/site-packages/rasa/shared/nlu/training_data/formats/", line 89, in _extract_entity entity_type = chunk.get("alias", chunk["meta"])

System details

  • Rasa Version : 2.1.3
  • Rasa SDK Version : 2.3.1
  • Rasa X Version : None
  • Python Version : 3.7.1
  • Operating System : Darwin-20.3.0-x86_64-i386-64bit
  • Python Path : /Users/someone/.pyenv/versions/3.7.1/bin/python3.7

thanks @ffosme ! this sounds like a bug. Could you pelase create an issue with a minimal DF export that produces this error? would help us fix it.

Thanks @amn41, will do. I’ve discovered since creating this thread that it only seems to be specific files; when trying with a subset of my model training works fine. I’ll try to find the files that are causing a problem and open an issue.