Hi,
Per this article http://rasa.com/docs/nlu/http/, i’m able to POST /train my nlu model using postman.
But, running into issues from javasscript. My issue is in generating this request from js
Please describe the problem you are facing / error etc.
Note that javascript run from a browser must satisfy CORS (i.e. if you are posting via AJAX you must be in same protocol , domain ,port) - or use JSON-P or enable CORS headers (on the Rasa nlu server) - See https://github.com/RasaHQ/rasa_nlu/blob/master/rasa_nlu/server.py argument --cors
If your problem is generating the json string - what is the issue (note documents omit commas etc between the properties which are needed in JSON - However if you just use a javascript object then you should be good.
I think the documentation needs to be updated, section-> “Using training data in json format:” .
The language and pipeline values should be within the “data” as described below
data: { language: “en”,pipeline: “spacy_sklearn”,“rasa_nlu_data”: { “common_examples”: [ { “text”: “hey”, “intent”: “greet”, “entities”: [] } ] } }
Sorry im not understanding how i merge my json training data with my pipeline in the post resquest. Can you provide an example? my request
“POST /train?project=5c0959e4df513060d45b081e”
Hi there @sfurao, were you able to resolve this issue?
I’m coming across the same problem in that I’d like to use an already developed custom pipeline with the /train endpoint but I can’t figure out the correct format (or if it’s even possible).