问题
I have been searching the past few days how to retrieve the endpoint utterances and its scores for a dashboard I am working with. Problem is I'm lost with the APIs, there seems to be many, but I cannot find the exact one that fits my need.
In this API documentation here, there is one that gets example utterances. What I would want to get is the actual endpoint utterances.
Anyone can point me where to find the API to use? Thanks in advance.
回答1:
@Jeff, actually in that API docs that you linked, the answer was there, however perhaps not under the most obvious name.
You're looking for Download application query logs, which has this request URL
https://[location].api.cognitive.microsoft.com/luis/api/v2.0/apps/{appId}/querylogs/[?includeResponse]
GET Download application query logs - Gets the query logs of the past month for the application.
The response is 200 as a CSV file containing the query logs for the past month.
回答2:
Got this one working now, got it from this forums.
https://<REGION>.api.cognitive.microsoft.com/luis/api/v2.0/apps/<APP_ID>/versions/0.1/intents/<INTENT_ID>/suggest?multiple-intents=true
Just confused a bit, I do not find the use of the INTENT_ID here. I'm not sure if this was intended or was a fault on the api design.
But anyways, did the job, got all the user utterances and its confidence scores. Hope this helps anyone.
来源:https://stackoverflow.com/questions/57156194/luis-api-retrieve-all-endpoint-utterances-and-its-scores