Dialogflow dynamic enity issue

余生颓废 提交于 2019-12-10 10:19:55

问题


I am trying to create an Actions on Google app using Dialogflow (api.ai). I need to get the train status. So my entity will be train number or train name. There is a lot of train names. So I can't add the entity values manually. How can i add entity values dynamically to the console?


回答1:


You can add large sets of values and synonyms either JSON or CVS formatted by:

  1. Directly pasting them in the Entity raw mode JSON or CSV fields.
  2. Uploading a JSON or CSV formatted file entity.
  3. Make POST calls to the Dialogflow API. See more here.

While you can use the Allow automated expansion checkbox in the entity to take what the user says as an entity value even though it wasn't defined I would advice against it as it will require a large amount of examples (entity values) for training to be able to match relevantly. Find more here.



来源:https://stackoverflow.com/questions/48899846/dialogflow-dynamic-enity-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!