试图使用这些话语时,bot将确认状态视为没有确认的状态。
示例:
"confirmationStatus": "Confirmed", "sourceLexNLUIntentInterpretation": null }, "inputTranscript": "yes" }
"confirmationStatus": "None", "sourceLexNLUIntentInterpretation": null }, "inputTranscript": "yes it is" }
有人曾经用AWS Lex面对这个吗?
试图清理任何期望"是"或类似话语的插槽。
预期:
"confirmationStatus": "Confirmed", "sourceLexNLUIntentInterpretation": null }, "inputTranscript": "yes" }
实际:
"confirmationStatus": "None", "sourceLexNLUIntentInterpretation": null }, "inputTranscript": "yes it is" }
Amazon建议使用censermintent或censerveSlot作为是/否问题。但是由于输入识别的局限性,我选择使用插槽。
我创建了一个自定义的slottype,将值分解为"是"或"否",并使用每种值的长列表,以捕获许多回答的方式。它也使我还可以在懒惰的用户中上/向上/向上表达表情符号。
用户确实倾向于在bot上投掷更多的口语短语,以尝试绊倒它们,因此我还添加了诸如" You Bet"," Nailed It","不是地狱中的机会"等短语,等等。