【发布时间】:2018-02-28 22:55:12
【问题描述】:
参考此链接https://docs.microsoft.com/en-us/bot-framework/nodejs/bot-builder-nodejs-recognize-intent-luis
我拿了这段代码:
// CreateNote dialog
bot.dialog('CreateNote', [
function (session, args, next) {
// Resolve and store any Note.Title entity passed from LUIS.
var intent = args.intent;
var title = builder.EntityRecognizer.findEntity(intent.entities, 'Note.Title');
var note = session.dialogData.note = {
title: title ? title.entity : null,
};
我不明白的是'CreateNote'在本节中代表什么?
参考这一行:
var title = builder.EntityRecognizer.findEntity(intent.entities, 'Note.Title');
假设我的意图名称是calendar.add,我的实体名称是calendar.location
intent.entities calendar.add.calendar.location 会造成任何混乱吗?
【问题讨论】:
标签: node.js azure-language-understanding