# ValueError: Unknown data format for file data/stories.md

**URL:** <https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802>\
**Category:** Rasa Open Source\
**Created:** [April 20, 2019, 7:30am UTC](https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802 "2019-04-20T07:30:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anoopmohan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anoopmohan/32/2722_2.png) [@anoopmohan](https://forum.rasa.com/u/anoopmohan)\
**Post date:** [April 20, 2019, 7:30am UTC](https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802/1 "2019-04-20T07:30:54Z")

</div>

I am getting an error when I try to train rasa NLU with rasa-master branch using following command.

rasa train nlu -c config.yml -o models --verbose

My data/nlu.md file content is given below:

## intent:greet

- hey
- hello there
- hi
- good morning
- good evening
- hey there
- let’s go
- hey dude
- goodmorning
- goodevening
- good afternoon
- Hi
- Hello

My data/stories.md file content is given below:

## greet

- greet
  - utter\_greet

Error log:

2019-04-20 07:20:16 INFO rasa.nlu.utils.spacy\_utils - Trying to load spacy model with name ‘en’ 2019-04-20 07:20:32 INFO rasa.nlu.components - Added ‘SpacyNLP’ to component cache. Key ‘SpacyNLP-en’. 2019-04-20 07:20:32 INFO rasa.nlu.training\_data.loading - Training data format of data/nlu.md is md 2019-04-20 07:20:32 INFO rasa.nlu.training\_data.training\_data - Training data stats: - intent examples: 13 (1 distinct intents) - Found intents: ‘greet’ - entity examples: 0 (0 distinct entities) - found entities:

Traceback (most recent call last): File “/home/ubuntu/virtual\_env/bin/rasa”, line 11, in load\_entry\_point(‘rasa’, ‘console\_scripts’, ‘rasa’)() File “/home/ubuntu/projects/rasa/rasa/ **main**.py”, line 64, in main cmdline\_arguments.func(cmdline\_arguments) File “/home/ubuntu/projects/rasa/rasa/cli/train.py”, line 164, in train\_nlu return train\_nlu(config, nlu\_data, output, train\_path) File “/home/ubuntu/projects/rasa/rasa/train.py”, line 174, in train\_nlu config, nlu\_data, \_train\_path, project="", fixed\_model\_name=“nlu” File “/home/ubuntu/projects/rasa/rasa/nlu/train.py”, line 159, in train training\_data = load\_data(data, nlu\_config.language) File “/home/ubuntu/projects/rasa/rasa/nlu/training\_data/loading.py”, line 55, in load\_data data\_sets = [\_load(f, language) for f in files] File “/home/ubuntu/projects/rasa/rasa/nlu/training\_data/loading.py”, line 55, in data\_sets = [\_load(f, language) for f in files] File “/home/ubuntu/projects/rasa/rasa/nlu/training\_data/loading.py”, line 114, in \_load raise ValueError(“Unknown data format for file {}”.format(filename)) ValueError: Unknown data format for file data/stories.md

Thansk you

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 20, 2019, 7:40am UTC](https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802/2 "2019-04-20T07:40:27Z")

</div>

Hey there @anoopmohan! We’re still working out the kinks in the new CLI, and this is one we’re already aware of. If you’re trying to train a full Core/NLU model (my guess is yes because you provided stories too), you should do it with `rasa train` as this will train both core and nlu. I believe for this the default path of `-d data` should be fine, so you don’t have to pass an argument. If you specifically only want to train an nlu model, then use `rasa train nlu`, but add the path to your specific nlu file, so `-d data/nlu.md`.

---

<div class="post-metadata">

**Author:** ![anoopmohan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anoopmohan/32/2722_2.png) [@anoopmohan](https://forum.rasa.com/u/anoopmohan)\
**Post date:** [April 20, 2019, 7:50am UTC](https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802/3 "2019-04-20T07:50:34Z")

</div>

Thank you very much @erohmensing for the quick response. So, just to get more clarity on this, I have my nlu.md and stories.md files stored in data directory. So, if I need to train both nlu and core, believe I should use the following command.

rasa train -c config.yml -o models --verbos

Please correct me, if I am wrong. Thank you,

---

<div class="post-metadata">

**Author:** ![erohmensing](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/erohmensing/32/1789_2.png) [@erohmensing](https://forum.rasa.com/u/erohmensing)\
**Post date:** [April 20, 2019, 9:09am UTC](https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802/4 "2019-04-20T09:09:20Z")

</div>

Yep that should work I believe! And those config and outfile locations are default, so `rasa train --verbose` should do it. Keep in mind both your nlu config and your policies should be in the `config.yml` with the new setup.

---

<div class="post-metadata">

**Author:** ![anoopmohan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anoopmohan/32/2722_2.png) [@anoopmohan](https://forum.rasa.com/u/anoopmohan)\
**Post date:** [April 21, 2019, 3:12am UTC](https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802/5 "2019-04-21T03:12:32Z")

</div>

Great! Thank you for your support @erohmensing

---

<div class="post-metadata">

**Author:** ![anoopmohan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/anoopmohan/32/2722_2.png) [@anoopmohan](https://forum.rasa.com/u/anoopmohan)\
**Post date:** [April 28, 2019, 5:20pm UTC](https://forum.rasa.com/t/valueerror-unknown-data-format-for-file-data-stories-md/8802/6 "2019-04-28T17:20:09Z")

</div>

Thank you @erohmensing for your help. Yes, that works with out any issues.
