0
我的意图架构使用的AMAZON.NUMBER插槽:像插槽类型AMAZON.NUMBER不会处理更大数量
{
"intents": [
{
"intent": "MyIntent",
"slots": [
{
"name": "Foo",
"type": "AMAZON.NUMBER"
}
]
}
]
}
较小的数字“千两”的IntentRequest正确显示...
{
"version": "1.0",
"request": {
"Intent": {
"name": "MyIntent",
"slots": {
"Foo": {
"name": "Foo",
"value": "2000"
}
}
},
"type": "IntentRequest"
}
}
不幸的是,它似乎并没有处理诸如“四百五十万元”:
{
"version": "1.0",
"request": {
"Intent": {
"name": "MyIntent",
"slots": {
"Foo": {
"name": "Foo",
"value": "?"
}
}
},
"type": "IntentRequest"
}
}
我是否需要使用AMAZON.LITERAL插槽并将该值输入到我自己的数字表达式解析器中?或者,还有更好的方法?
无赖。我想唯一的希望是亚马逊未来会对AMAZON.NUMBER进行改进。谢谢! – Max