简体   繁体   English

设计api.ai的自定义实体

[英]Design custom entities for api.ai

I am trying to develop the bot using api.ai and confused between street address and address. 我正在尝试使用api.ai开发该机器人,并混淆了街道地址和地址。 I have read the documentation and got to know that it is for the US addresses only. 我已经阅读了文档,并且知道它仅适用于美国地址。 Can I design it for myself for any city and what is the smart way to do so. 我可以在任何城市为自己设计它,这样做的明智方法是什么?

Method I know 我知道的方法

  1. creating the entities manually( add every places to the custom entity one by one). 手动创建实体(将每个位置一一添加到自定义实体中)。
  2. One more method, user will write any address, bot will veritfy it with google maps if this vaild address than add it to the custom entity.( currently I don't know how will I do this but I think it can possible) 还有一种方法,用户可以写任何地址,如果此地址有效,bot可以通过google maps验证它(而不是将其添加到自定义实体中。)(目前我不知道该怎么做,但我认为有可能)

You can use api.ai APIs to add custom entities. 您可以使用api.ai API添加自定义实体。 You can use python geopy to verify and create/update your entities. 您可以使用python geopy来验证和创建/更新您的实体。

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

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