路易斯以编程方式训练和发布
Luis programmatically train and publish
我一直在尝试以编程方式训练和发布基于 https://westus.dev.cognitive.microsoft.com/docs/services/5890b47c39e2bb17b84a55ff/operations/5890b47c39e2bb052c5b9c3b 的 Luis 模型。
我有多个 Luis 应用程序需要训练,我当前的流程是:
Post待训练的应用-排队状态
根据单个model/intent获取训练状态(检查单个intent是否训练完成)
如果意图训练完成,不考虑其他意图,继续发布。
我的问题是,如果 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"
}
}
My question over here is that if the other model in a Luis app havent
completed training - that means, its still in progress, can the Luis
app published?
否,您的所有 LUIS 应用(即:所有意向)都必须成功训练才能发布
我一直在尝试以编程方式训练和发布基于 https://westus.dev.cognitive.microsoft.com/docs/services/5890b47c39e2bb17b84a55ff/operations/5890b47c39e2bb052c5b9c3b 的 Luis 模型。
我有多个 Luis 应用程序需要训练,我当前的流程是:
Post待训练的应用-排队状态
根据单个model/intent获取训练状态(检查单个intent是否训练完成)
如果意图训练完成,不考虑其他意图,继续发布。
我的问题是,如果 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"
}
}
My question over here is that if the other model in a Luis app havent completed training - that means, its still in progress, can the Luis app published?
否,您的所有 LUIS 应用(即:所有意向)都必须成功训练才能发布