gpt4 book ai didi

aws-lambda - 如何使用 amazon-lex 获得意图分数/信心?

转载 作者:行者123 更新时间:2023-12-02 04:30:50 28 4
gpt4 key购买 nike

Luis、watson、dialogflow - 所有它们在 json 结果中都返回分数/置信度值(luis 示例):

"intents": [
{
"intent": "SearchSigil",
"score": 0.9916578
},

有没有办法使用 amazon-lex 获得分数?

最佳答案

Lex 当前不支持此功能。所以有 没办法的得分。

匹配意图后,我们从 Lex 得到以下响应:

{
"currentIntent": {
"name": "intent-name",
"slots": {
"slot name": "value",
"slot name": "value"
},
"slotDetails": {
"slot name": {
"resolutions" : [
{ "value": "resolved value" },
{ "value": "resolved value" }
],
"originalValue": "original text"
},
"slot name": {
"resolutions" : [
{ "value": "resolved value" },
{ "value": "resolved value" }
],
"originalValue": "original text"
}
},
"confirmationStatus": "None, Confirmed, or Denied (intent confirmation, if configured)"
},
"bot": {
"name": "bot name",
"alias": "bot alias",
"version": "bot version"
},
"userId": "User ID specified in the POST request to Amazon Lex.",
"inputTranscript": "Text used to process the request",
"invocationSource": "FulfillmentCodeHook or DialogCodeHook",
"outputDialogMode": "Text or Voice, based on ContentType request header in runtime API request",
"messageVersion": "1.0",
"sessionAttributes": {
"key": "value",
"key": "value"
},
"requestAttributes": {
"key": "value",
"key": "value"
}
}

关于aws-lambda - 如何使用 amazon-lex 获得意图分数/信心?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48994038/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com