自定义 Alexa 技能 Alexa 认为 "this year" 是 "this week"
Custom Alexa Skill Alexa thinks "this year" is "this week"
我正在为 Alexa 开发一项技能,目的是 "How many times did this event happen {Timespan}." {Timespan} 是一个 AMAZON.DATE 插槽。可接受的语句是 "this week"、"this month" 和 "this year"。如果我对 Alexa 说 "How many times did this event happen this year",她会将 "this year" 解释为 "this week"。如果我说 "How many times did this event happen",Alexa 会说 "What time period do you want me to check?" 如果我说 "this year",她会将其解释为 "this year"。对这里发生的事情有什么想法吗?
这听起来确实很奇怪。解决方法可以是自定义 slot-tpye,其值为 'year'、'month' 和 'week',以及相应的同义词,例如 'this year'。根据我的经验,自定义插槽类型往往效果更好。
我正在为 Alexa 开发一项技能,目的是 "How many times did this event happen {Timespan}." {Timespan} 是一个 AMAZON.DATE 插槽。可接受的语句是 "this week"、"this month" 和 "this year"。如果我对 Alexa 说 "How many times did this event happen this year",她会将 "this year" 解释为 "this week"。如果我说 "How many times did this event happen",Alexa 会说 "What time period do you want me to check?" 如果我说 "this year",她会将其解释为 "this year"。对这里发生的事情有什么想法吗?
这听起来确实很奇怪。解决方法可以是自定义 slot-tpye,其值为 'year'、'month' 和 'week',以及相应的同义词,例如 'this year'。根据我的经验,自定义插槽类型往往效果更好。