Is there an official LUIS API that returns the total number of Utterances for each intent?

柔情痞子 提交于 2019-12-12 06:58:39

问题


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.

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

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.


回答1:


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.

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.



来源:https://stackoverflow.com/questions/56937022/is-there-an-official-luis-api-that-returns-the-total-number-of-utterances-for-ea

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