我一直在尝试以编程方式训练和发布基于https://westus.dev.cognitive.microsoft.com/docs/services/5890b47c39e2bb17b84a55ff/operations/5890b47c39e2bb052c5b9c3b的Luis模型。
我要训练多个Luis应用程序,我的当前流程是:
发布要接受培训的应用-排队状态
基于单个模型/意图获取训练状态(检查单个意图是否已完成训练)
如果完成了意图培训,而没有考虑其他意图,请继续发布。
我在这里的问题是,如果Luis应用程序中的其他模型还没有完成培训-这意味着Luis应用程序仍在进行中,可以发布吗?
我得到以下西班牙语的json结果-无法加载模型。请重新培训您的应用程序。
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."
}
}
以下针对中文应用程序-序列不包含任何元素
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"
}
}
答案 0 :(得分:3)
我在这里的问题是,Luis应用程序中的其他模型是否没有 完成培训-这意味着路易斯仍在进行中 应用发布了吗?
否,您的所有LUIS应用程序(即所有意图)都必须经过培训才能成功发布