首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >Luis以编程方式训练和发布

Luis以编程方式训练和发布
EN

Stack Overflow用户
提问于 2018-07-11 02:29:08
回答 1查看 333关注 0票数 0

我一直试图以编程的方式训练和发布基于https://westus.dev.cognitive.microsoft.com/docs/services/5890b47c39e2bb17b84a55ff/operations/5890b47c39e2bb052c5b9c3b的Luis模型。

我需要训练多个Luis应用程序,我目前的流程是:

  1. 发布要接受训练的应用程序-排队状态
  2. 根据单个模型/意图获取培训状态(检查单个意图是否已完成培训)
  3. 如果意图培训已经完成,而不考虑其他意图,则继续发布。

我在这里的问题是,如果Luis应用程序中的另一个模型没有完成培训--这意味着,它仍在进行中,Luis应用程序能发布吗?

我得到了以下西班牙语的json结果-无法加载模型。请重新培训你的申请.

代码语言:javascript
运行
复制
Requested training status For Spanish
[
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   },
   {
      "modelId": "40c607ab-ce31-46ac-b67c-61168d21b7d0",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:42Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:41Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 3,
         "status": "InProgress",
         "exampleCount": 1052
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:38Z"
      }
   }
]
Publishing Application For Spanish
Inside Publish Application Action For Spanish
Sending Request
Response Received
Completed Publishing Application For Spanish
{
   "error": {
      "code": "ModelLoadFailed",
      "message": "Could not load model. Please re-train your application."
   }
}

以下中文应用程序序列不包含任何元素

代码语言:javascript
运行
复制
Requested training status For Chinese
[
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:56Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:56Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:56Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:56Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:56Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:58Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:57Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:56Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 3,
         "status": "InProgress",
         "exampleCount": 1052
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:53Z"
      }
   },
   {
      "modelId": "",
      "details": {
         "statusId": 0,
         "status": "Success",
         "exampleCount": 1052,
         "trainingDateTime": "2018-07-11T02:01:56Z"
      }
   }
]
Publishing Application For Chinese
Inside Publish Application Action For Chinese
Sending Request
Response Received
Completed Publishing Application For Chinese
{
   "error": {
      "code": "BadArgument",
      "message": "Sequence contains no elements"
   }
}
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-07-11 12:30:12

我在这里的问题是,如果Luis应用程序中的另一个模型没有完成培训--这意味着,它仍在进行中,Luis应用程序能发布吗?

不,你所有的LUIS应用程序(即:所有意图)都必须经过成功的训练才能出版。

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/51276386

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档