我想解决两个简单的 Alexa 问题:
when is the next train from chicago to new york
when is the next train to new york from chicago
在上面的两个问题中,第一个城市被映射到起点,第二个城市被映射到目的地,有效地产生:
when is the next train *from* new york *to* chicago
代替
when is the next train *to* new york *from* chicago
我的示例话语设置如下:
NextTrainIntent next train from {OriginCity} to {DestinationCity}
NextTrainIntent next train to {DestinationCity} from {OriginCity}
我意识到连接词被忽略了。但在这种情况下,它们是至关重要的,因为这就是英语的工作方式。有没有办法让这两个问题都起作用?