For dialogflow emulation, I start a server using command python -m rasa_nlu.server -e dialogflow --path ./models
and it gives me output preformatted as dialogflow when I use command curl -XPOST localhost:5000/parse -d '{"q":"hello there", "project": "current"}'
. How do i emulate dialogflow output in python? This code give’s me output in rasa format and not dialogflows
import json
def pprint(o):
print(json.dumps(o, indent=2))
interpreter = Interpreter.load('models/current/model_20190226-124527')
pprint(interpreter.parse(u"I want a ticket from US to Phillipines"))```
Is there any way to get the output in dialogflow format?