Search code examples
pythoncommand-line-argumentsrasa-core

Rasa core train command: unrecognized arguments


I was following the tutorial from the rasa's official documentation page. Rasa core's training command shows the following error:

usage: train.py [-h] [--model [MODEL]]
train.py: error: unrecognized arguments: -s data/stories.md -o models/dialogue -c cofing/nlu_config.yml

I have looked through the rasa Core's run.py file here https://github.com/RasaHQ/rasa_core/blob/master/rasa_core/run.py. The command line argument for '-s' (stories) does not seem to exist.

This is the command that I ran in the terminal( as given in the tutorial ): python -m rasa_core.train -s data/stories.md -o models/dialogue -c cofing/nlu_config.yml

I am new to Rasa as well as stack Overflow, any help would be appreciated as I am unable to figure out this noob yet seeming unsolvable problem.


Solution

  • python -m rasa_core.train -s data/stories.md -d domain.yml -o models/dialogue  -c policy.yml
    

    You are missing the domain file.