在使用话语 99110 创建新意图时,出现以下错误
"1099" in utterance "1099" for intent "numericTest" contains an unsupported character or word. An utterance can consist only of Unicode characters, spaces, and valid punctuation marks. Valid punctuation marks are: periods for abbreviations, underscores, apostrophes, and hyphens. If there is a slot placeholder in your utterance ensure, that it's in the {slotName} format and has spaces at both ends.
lex 不会将其发送到 lambda 实例,因为它无法评估意图。如果我得到输入,我可以在 lambda 处处理输入,但 lex 只是返回“抱歉,我不明白。”
如何将此数字输入输入到我的 lambda 实例中,或者如何让 lex 识别该数字?
文档说使用 amazon.NUMBER 内置意图,但它不再存在了。
最佳答案
根据亚马逊的说法,话语可以是口头或键入的单词和短语。
您可以编写“一哦九九”或“一零九九”,而不是字面地输入“1099”作为话语,并且如果用户键入“1099”作为文本或说出它,它就会起作用。
关于amazon-web-services - Amazon Lex 不支持数字输入,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47120271/