I have trained a model in the default project using the
python -m rasa_nlu.train
command. However, i also want to try adding another model using the train HTTP API call. I tried to run it with
–config config.yml
–data nlu_data/
–path projects
curl ‘https://raw.githubusercontent.com/RasaHQ/rasa_nlu/master/sample_configs/config_train_server_json.yml’ |
command that i found at https://pypi.org/project/rasa_nlu/.
curl --request POST --header ‘content-type: application/x-yml’ -d@- --url ‘localhost:5000/train?project=test_model’
I get the following error and I am not sure how to proceed with this.
{
"error": "while parsing a block mapping\n in \"\", line 1, column 1:\n language: \"en\"pipeline: \"spacy_s ... \n ^\nexpected , but found ''\n in \"\", line 1, column 15:\n language: \"en\"pipeline: \"spacy_sklearn\"# data ... \n ^"