如何接受自由格式文本作为 Amazon Skill Kit 的输入?

编程入门 行业动态 更新时间:2024-10-07 14:21:58
本文介绍了如何接受自由格式文本作为 Amazon Skill Kit 的输入?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要创建一个 Amazon Skill Kit 才能在我们的票务工具中开票.通过查看 Amazon Skill Kit 的示例,我找不到接受自由格式文本作为输入的方法.另一种选择是创建一个自定义槽,将所有可能的输入集作为自定义槽输入.

I'm required to create a Amazon Skill Kit to open a ticket in our ticketing tool. By looking at the examples for Amazon Skill Kit, I couldn't find a way of accepting the free form text as input. Other option is by creating a custom slot with all probable set of inputs as custom slot inputs.

但就我而言,我所要做的就是捕获用户输入的全部内容,并将其记录在票证中的某个位置,而这不太可能事先预料到可能的话语.

But in my case, all i have to do is capture the full content of user input to log it somewhere in the ticket which is very unlikely to expect the probable utterances before hand.

推荐答案

更正我的评论...我和其他人可能误解了 AMAZON.LITERAL 的弃用.我发现自定义插槽仍然通过与预定义条目不匹配的文字内容.如果您有一个包含条目Bob"和John"的自定义插槽,并且我说Samuel",我的技能仍然发送Samuel".这似乎与之前的 AMAZON.LITERAL 行为相同.(AMAZON.LITERAL 要求您提供示例话语,就像自定义插槽需要提供示例话语一样,因此似乎只是定义上的差异,而不是功能上的差异.)

Correction to my comment... I, and others, may be misunderstanding the deprecation of the AMAZON.LITERAL. I found that custom slots still pass through literal content that did not match the predefined entries. If you have a custom slot with the entries "Bob" and "John" and I say "Samuel" my skill is still sent "Samuel". Which seems identical to previous AMAZON.LITERAL behavior. (AMAZON.LITERAL required you to provide example utterances, just as custom slots require to provide example utterances, so it seems only a difference in definition, not function.)

更多推荐

如何接受自由格式文本作为 Amazon Skill Kit 的输入?

本文发布于:2023-11-28 08:09:42,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1641606.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文本   格式   自由   Kit   Skill

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!