本文介绍了在亚马逊Alexa中不存在AMAZON.FIVE_DIGIT_NUMBER来捕获邮政编码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Alexa认证反馈说对邮政编码使用插槽类型 AMAZON.FIVE_DIGIT_NUMBER。那是有道理的,但实际上并不存在!

Alexa certification feedback says to use slot type "AMAZON.FIVE_DIGIT_NUMBER" for zipcodes. That would make sense, but it doesn't actually exist!

当我包含此插槽类型时,无法保存意图json它给出了错误:插槽'POSTCODE'的未知插槽类型'AMAZON.FIVE_DIGIT_NUMBER'

When I include this slot type, I am unable to save the intent json It gives the error: "Unknown slot type 'AMAZON.FIVE_DIGIT_NUMBER' for slot 'POSTCODE'".

我可以替换为AMAZON.FOUR_DIGIT_NUMBER,它的工作原理很好,可以捕获所有内容5位数好。但是,提到此问题是导致认证失败的原因。

I can replace with AMAZON.FOUR_DIGIT_NUMBER and it works great and captures all 5 digits nicely. However, this issue was mentioned as a reason for failed certification.

我可以用AMAZON.NUMBER代替,这有点用(根据认证中的建议),但通常只能捕获具有讽刺意味的是,前4位数字不及AMAZON.FOUR_DIGIT_NUMBER几乎总是捕获所有5位数字。

I can replace with AMAZON.NUMBER which kinda works (as per suggestion in certification), but often only captures the first 4 digits, ironically not as well as AMAZON.FOUR_DIGIT_NUMBER which almost always captures all 5.

我想通过认证,但AMAZON.NUMBER的显示效果较差。

I want to pass certification but the AMAZON.NUMBER seems to give inferior results.

我该怎么办?

推荐答案

是的,返回来自Alexa认证人员的信息。即使最近添加了一大批内置插槽,也没有AMAZON.FIVE_DIGIT_NUMBER内置插槽。

Yes, you got back info from the Alexa certification people. There is no AMAZON.FIVE_DIGIT_NUMBER built-in slot, even in the big new batch of built-in slots that they added recently.

有AMAZON.PostalAddress和各种内置插槽-ins适用于城市,但都不能满足您的要求,因此您受制于AMAZON.NUMBER。

There is AMAZON.PostalAddress and various built-ins for cities, but neither of those really fit the bill, so you are stuck with AMAZON.NUMBER.

这篇关于在亚马逊Alexa中不存在AMAZON.FIVE_DIGIT_NUMBER来捕获邮政编码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-28 15:33