是否有任何像 Amazon Alexa Custom Skills 一样工作的开源库,您可以在其中为它提供意图模式和要匹配的示例话语,它会提供解析后的标记化响应,其中包含在定义中匹配的实体。
这是一个示例Alexa 自定义技能意图架构。
用于训练和指定如何匹配文本和映射到实体的示例话语:
AnswerIntent the answer is {Answer}
AnswerIntent my answer is {Answer}
AnswerIntent is it {Answer}
AnswerIntent {Answer} is my answer AnswerOnlyIntent {Answer}
AMAZON.StartOverIntent start game
AMAZON.StartOverIntent new game
AMAZON.StartOverIntent start
AMAZON.StartOverIntent start new game
另一项服务是https://wit.ai/,它允许您配置表达式和令牌以进行匹配,是否有任何开源库可以提供这种级别的灵活性。