Alexa 示例话语无法根据连接词识别槽
Alexa sample utterance can't discern slots based on connector words
我有两个简单的 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}
我发现连接词被忽略了。但在这种情况下,它们很关键,因为这就是英语的工作方式。有没有办法让这两个问题都有效?
将这些语句实现为两个不同的 Intent。
FirstIntent ... {OriginCity} to {DestinationCity}
SecondIntent ...{DestinationCity} from {OriginCity}
Alexa 会更仔细地听。
或尝试 Alexa Skill Builder(测试版)。
我有两个简单的 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}
我发现连接词被忽略了。但在这种情况下,它们很关键,因为这就是英语的工作方式。有没有办法让这两个问题都有效?
将这些语句实现为两个不同的 Intent。
FirstIntent ... {OriginCity} to {DestinationCity}
SecondIntent ...{DestinationCity} from {OriginCity}
Alexa 会更仔细地听。
或尝试 Alexa Skill Builder(测试版)。