简体   繁体   English

Dialogflow 实体 - 区分大小写

[英]Dialogflow Entities - Case sensitive

I am creating a chatbot using Dialogflow and Python and I noticed that the entity names are case-sensitive.我正在使用 Dialogflow 和 Python 创建一个聊天机器人,我注意到实体名称区分大小写。 Can someone please tell me how to make it case-insensitive?有人可以告诉我如何使它不区分大小写吗?

There might be some efficient ways of doing that using Regexp entities but I have not used them extensively, so I am not sure about the side effects.使用 Regexp 实体可能有一些有效的方法,但我没有广泛使用它们,所以我不确定副作用。 However, the is a simpler way that will certainly work.但是,这是一种更简单的方法,肯定会奏效。

On DF console Entities page you can find 'enter synonym' next to your entities reference value.在 DF 控制台实体页面上,您可以在实体参考值旁边找到“输入同义词”。 In the synonym section you can enter both capitalized and uncapitalized versions.在同义词部分,您可以输入大写和非大写版本。 In that way DF will recognize both options.这样,DF 将识别这两个选项。 Similarly you can use Regexp, however that would really depend on how you have structured you entities.同样,您可以使用 Regexp,但这实际上取决于您如何构建实体。

I have not found them to be case sensitive.我没有发现它们区分大小写。 Is is possible that other entities are similar enough to others?其他实体是否可能与其他实体足够相似? Or, do you have fuzzy matching check on any by any chance?或者,您是否有任何机会进行模糊匹配检查?

Also, I am still grasping the depths of google cloud console as a whole, but it would seem that a little training does go a long way.另外,我仍然在整体上掌握谷歌云控制台的深度,但似乎有点训练 go 的路很长。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM