插槽类型 AMAZON.NUMBER 无法处理更大的数字

Slot type AMAZON.NUMBER won't handle larger number

我的意图架构使用了一个 AMAZON.NUMBER 插槽:

{
  "intents": [
    {
      "intent": "MyIntent",
      "slots": [
        {
          "name": "Foo",
          "type": "AMAZON.NUMBER"
        }
      ]
    }
  ]
}

"two thousand" 等较小的数字正确显示在 IntentRequest...

{
  "version": "1.0",
  "request": {
    "Intent": {
      "name": "MyIntent",
      "slots": {
        "Foo": {
          "name": "Foo",
          "value": "2000"
        }
      }
    },
    "type": "IntentRequest"
  }
}

不幸的是,它似乎无法处理 "four point five million":

等表达式
{
  "version": "1.0",
  "request": {
    "Intent": {
      "name": "MyIntent",
      "slots": {
        "Foo": {
          "name": "Foo",
          "value": "?"
        }
      }
    },
    "type": "IntentRequest"
  }
}

我是否需要使用 AMAZON.LITERAL 槽并将值输入我自己的数字表达式解析器?或者有更好的方法吗?

AMAZON.NUMBER 插槽类型不能很好地处理数字序列(例如电话号码或银行帐号),根据我的经验,它不能处理小数或中间有任何 "utterance" 的数字.最重要的是,AMAZON.LITERAL 已被弃用,因此可能很难使用当前的 API 捕获此类数字。对不起。