【发布时间】:2018-12-18 22:59:36
【问题描述】:
我一直在尝试基于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"
}
}
【问题讨论】:
标签: botframework azure-language-understanding