是否有官方的LUIS API可以返回每种意图的话语总数? [英] Is there an official LUIS API that returns the total number of Utterances for each intent?

查看:83
本文介绍了是否有官方的LUIS API可以返回每种意图的话语总数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我注意到LUIS门户网站(www.luis.ai)显示了Intents,其中包含每个Utterance的总数.我正在寻找在我的应用程序中构建类似页面的方法,尽管Microsoft已发布的API没有提供返回每种意图总言语的方法.

I noticed the LUIS portal (www.luis.ai) shows Intents with the total number of Utterances for each. I'm looking to build a similar page in my application, although Microsoft's published APIs don't have a method that returns the total utterances per intent.

我们注意到LUIS仪表板正在使用此API提取数据,但该方法未在其文档中发布: https://westus.api.cognitive.microsoft.com/luis/webapi/v2.0/apps/{appId}/versions/{version}/stats/labelsperintent

We noticed the LUIS dashboard is using this API to pull the data, but the method is not published in their docs: https://westus.api.cognitive.microsoft.com/luis/webapi/v2.0/apps/{appId}/versions/{version}/stats/labelsperintent

有人知道这是否是可以使用的官方API吗?我们不想使用它,然后Microsoft稍后对其进行更改,这可能会破坏我们的代码.

Does anyone know whether this is an official API that can be used? We don't want to use it and then Microsoft makes changes to it later which could break our code.

推荐答案

您发现的端点不是官方的API.请注意,它是luis/webapi/v2.0而不是luis/api/v2.0.您可以使用它,但是就像您所说的那样,以后会有更改它的风险.

The endpoint you discovered is not an official API. Notice that it's luis/webapi/v2.0 instead of luis/api/v2.0. You can use it, but like you said you run the risk of it changing later.

我建议使用示例话语-查看带有标签的示例 API:https://[location].api.cognitive.microsoft.com/luis/api/v2.0/apps/{appId}/versions/{versionId}/examples[?skip][&take].您只需要自己查询数据即可查看每个意图的发声计数.

I recommend using the example utterances - Review labeled examples API: https://[location].api.cognitive.microsoft.com/luis/api/v2.0/apps/{appId}/versions/{versionId}/examples[?skip][&take]. You would just need to query the data yourself to see the utterance count for each intent.

这篇关于是否有官方的LUIS API可以返回每种意图的话语总数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆