您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

应用架构定义

LUIS 应用使用 .json.lu 表示,并且包括所有意向、实体、示例言语、功能和设置。

格式

导入和导出应用时,请选择 .json.lu

格式 信息
.json 标准编程格式
.lu 受 Bot Framework 的 Bot Builder 工具支持。

版本 7.x

{
  "luis_schema_version": "7.0.0",
  "intents": [
    {
      "name": "None",
      "features": []
    }
  ],
  "entities": [],
  "hierarchicals": [],
  "composites": [],
  "closedLists": [],
  "prebuiltEntities": [],
  "utterances": [],
  "versionId": "0.1",
  "name": "example-app",
  "desc": "",
  "culture": "en-us",
  "tokenizerVersion": "1.0.0",
  "patternAnyEntities": [],
  "regex_entities": [],
  "phraselists": [
  ],
  "regex_features": [],
  "patterns": [],
  "settings": []
}
element 注释
"hierarchicals": [], 已弃用,请使用机器学习实体
"composites": [], 已弃用,请使用机器学习实体复合实体引用。
"closedLists": [], 列出实体引用,主要用作实体的特征。
"versionId":"0.1", LUIS 应用的版本。
"name": "example-app", LUIS 应用的名称。
"desc": "", LUIS 应用的可选说明。
"culture": "en-us", 应用的语言,它会影响基础功能,如预生成实体、机器学习和 tokenizer。
"tokenizerVersion":"1.0.0", 分词器
"patternAnyEntities": [], Pattern.any 实体
"regex_entities": [], 正则表达式实体
"phraselists": [], 短语列表(特征)
"regex_features": [], 已弃用,请使用机器学习实体
"patterns": [], 模式通过模式语法提高预测准确性
"settings": [] 应用设置

版本 6.x

{
  "luis_schema_version": "6.0.0",
  "intents": [
    {
      "name": "None",
      "features": []
    }
  ],
  "entities": [],
  "hierarchicals": [],
  "composites": [],
  "closedLists": [],
  "prebuiltEntities": [],
  "utterances": [],
  "versionId": "0.1",
  "name": "example-app",
  "desc": "",
  "culture": "en-us",
  "tokenizerVersion": "1.0.0",
  "patternAnyEntities": [],
  "regex_entities": [],
  "phraselists": [],
  "regex_features": [],
  "patterns": [],
  "settings": []
}

版本 4.x

{
  "luis_schema_version": "4.0.0",
  "versionId": "0.1",
  "name": "example-app",
  "desc": "",
  "culture": "en-us",
  "tokenizerVersion": "1.0.0",
  "intents": [
    {
      "name": "None"
    }
  ],
  "entities": [],
  "composites": [],
  "closedLists": [],
  "patternAnyEntities": [],
  "regex_entities": [],
  "prebuiltEntities": [],
  "model_features": [],
  "regex_features": [],
  "patterns": [],
  "utterances": [],
  "settings": []
}

后续步骤