Dialogflow动态实体问题 [英] Dialogflow dynamic enity issue
问题描述
我正在尝试使用Dialogflow(api.ai)在Google应用上创建操作。我需要获得火车的状态。因此,我的实体将是火车编号或火车名称。火车名称很多。因此,我无法手动添加实体值。如何将实体值动态添加到控制台?
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?
推荐答案
您可以添加大量值和JSON或CVS格式的同义词创建者:
You can add large sets of values and synonyms either JSON or CVS formatted by:
- 直接将它们粘贴在实体原始模式 JSON或CSV字段中。
- 上传JSON或CSV格式的文件实体。
- 对Dialogflow API进行POST调用。查看更多此处。
- Directly pasting them in the Entity raw mode JSON or CSV fields.
- Uploading a JSON or CSV formatted file entity.
- 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.
这篇关于Dialogflow动态实体问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!