RasaHQ / rasa

💬 Open source machine learning framework to automate text- and voice-based conversations: NLU, dialogue management, connect to Slack, Facebook, and more - Create chatbots and voice assistants
https://rasa.com/docs/rasa/
Apache License 2.0
18.81k stars 4.62k forks source link

rasa-nlu flask api #1194

Closed rishikesh1205 closed 6 years ago

rishikesh1205 commented 6 years ago

can anyone please show me the python flask file to train the data in nlu and after parse a question to get the intents and entities accordingly

Mukund0007 commented 6 years ago

Hi Rishikesh, You can refer this link

Here intent-entity classifier is created as HTTP service. Each user request is directed to this service. This HTTP service generally hosted on 5000 port on a localhost, takes user input and returns a jason file with intent and entity for that particular user input. Based on intent-entity identified by HTTP service, required response is generated and displayed on flask app's front-end.

I hope it will be helpful in resolving your query. In case need some assistance write me back.

Thanks and Regards, Mukund

Mukund0007 commented 6 years ago

https://www.analyticsvidhya.com/blog/2018/01/faq-chatbots-the-future-of-information-searching/

wrathagom commented 6 years ago

@rishikesh1205 have you worked through your questions? I'm not entirely certain I understand what you are asking. Rasa NLU doesn't use flask, but rather a library called twisted. Most of the server/twisted code can be found here https://github.com/RasaHQ/rasa_nlu/blob/master/rasa_nlu/data_router.py

stale[bot] commented 6 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] commented 6 years ago

This issue has been automatically closed due to inactivity. Please create a new issue if you need more help.