你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Text Analysis Authoring - Get Training Status
获取训练作业的状态。
GET {Endpoint}/language/authoring/analyze-text/projects/{projectName}/train/jobs/{jobId}?api-version=2022-05-01
URI 参数
名称 | 在 | 必需 | 类型 | 说明 |
---|---|---|---|---|
Endpoint
|
path | True |
string |
支持的认知服务终结点(例如 https://.api.cognitiveservices.azure.com). |
job
|
path | True |
string |
作业 ID。 |
project
|
path | True |
string maxLength: 100 |
要使用的项目的名称。 |
api-version
|
query | True |
string |
客户端 API 版本。 |
请求头
名称 | 必需 | 类型 | 说明 |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
语言服务资源的订阅密钥。 |
响应
名称 | 类型 | 说明 |
---|---|---|
200 OK |
训练作业结果。 |
|
Other Status Codes |
错误响应。 |
安全性
Ocp-Apim-Subscription-Key
语言服务资源的订阅密钥。
类型:
apiKey
在:
header
示例
Successful Get Train Status
示例请求
GET {Endpoint}/language/authoring/analyze-text/projects/LoanAgreements/train/jobs/8ccf2ffe-e758-4d04-a44a-31512918c7e8_637858368000000000?api-version=2022-05-01
示例响应
{
"result": {
"modelLabel": "model1",
"trainingConfigVersion": "2022-05-01",
"estimatedEndDateTime": "2022-04-18T15:47:58.8190649Z",
"trainingStatus": {
"percentComplete": 3,
"startDateTime": "2022-04-18T15:45:06.8190649Z",
"status": "running"
},
"evaluationStatus": {
"percentComplete": 0,
"status": "notStarted"
}
},
"jobId": "8ccf2ffe-e758-4d04-a44a-31512918c7e8_637858368000000000",
"createdDateTime": "2022-04-18T15:44:44Z",
"lastUpdatedDateTime": "2022-04-18T15:45:48Z",
"expirationDateTime": "2022-04-25T15:44:44Z",
"status": "running"
}
定义
名称 | 说明 |
---|---|
Error |
错误对象。 |
Error |
人工可读错误代码。 |
Error |
错误响应。 |
Inner |
人工可读错误代码。 |
Inner |
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。 |
Job |
作业状态。 |
Text |
表示训练子作的详细状态。 |
Text |
表示训练作业的输出。 |
Text |
表示训练作业的状态。 |
Text |
表示执行请求时遇到的警告。 |
Error
错误对象。
名称 | 类型 | 说明 |
---|---|---|
code |
服务器定义的错误代码集之一。 |
|
details |
Error[] |
导致此报告错误的特定错误的详细信息数组。 |
innererror |
包含与当前对象有关错误的更具体信息的对象。 |
|
message |
string |
错误的人工可读表示形式。 |
target |
string |
错误的目标。 |
ErrorCode
人工可读错误代码。
值 | 说明 |
---|---|
AzureCognitiveSearchIndexLimitReached | |
AzureCognitiveSearchIndexNotFound | |
AzureCognitiveSearchNotFound | |
AzureCognitiveSearchThrottling | |
Conflict | |
Forbidden | |
InternalServerError | |
InvalidArgument | |
InvalidRequest | |
NotFound | |
OperationNotFound | |
ProjectNotFound | |
QuotaExceeded | |
ServiceUnavailable | |
Timeout | |
TooManyRequests | |
Unauthorized | |
Warning |
ErrorResponse
错误响应。
名称 | 类型 | 说明 |
---|---|---|
error |
错误对象。 |
InnerErrorCode
人工可读错误代码。
值 | 说明 |
---|---|
AzureCognitiveSearchNotFound | |
AzureCognitiveSearchThrottling | |
EmptyRequest | |
ExtractionFailure | |
InvalidCountryHint | |
InvalidDocument | |
InvalidDocumentBatch | |
InvalidParameterValue | |
InvalidRequest | |
InvalidRequestBodyFormat | |
KnowledgeBaseNotFound | |
MissingInputDocuments | |
ModelVersionIncorrect | |
UnsupportedLanguageCode |
InnerErrorModel
包含有关错误的更具体信息的对象。 根据Microsoft一个 API 指南 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses。
名称 | 类型 | 说明 |
---|---|---|
code |
服务器定义的错误代码集之一。 |
|
details |
object |
错误详细信息。 |
innererror |
包含与当前对象有关错误的更具体信息的对象。 |
|
message |
string |
错误信息。 |
target |
string |
错误目标。 |
JobStatus
作业状态。
值 | 说明 |
---|---|
cancelled | |
cancelling | |
failed | |
notStarted | |
partiallyCompleted | |
running | |
succeeded |
TextAnalysisAuthoringSubTrainingJobState
表示训练子作的详细状态。
名称 | 类型 | 说明 |
---|---|---|
endDateTime |
string (date-time) |
表示结束日期时间。 |
percentComplete |
integer (int32) |
表示进度百分比。 |
startDateTime |
string (date-time) |
表示开始日期时间。 |
status |
表示子作的状态。 |
TextAnalysisAuthoringTrainingJobResult
表示训练作业的输出。
名称 | 类型 | 说明 |
---|---|---|
estimatedEndDateTime |
string (date-time) |
表示训练和评估的估计结束日期时间。 |
evaluationStatus |
表示模型评估状态。 |
|
modelLabel |
string |
表示训练的模型标签。 |
trainingConfigVersion |
string |
表示训练配置版本。 |
trainingStatus |
表示模型训练状态。 |
TextAnalysisAuthoringTrainingJobState
表示训练作业的状态。
名称 | 类型 | 说明 |
---|---|---|
createdDateTime |
string (date-time) |
作业的创建日期时间。 |
errors |
Error[] |
执行作业时遇到的错误。 |
expirationDateTime |
string (date-time) |
作业的到期日期时间。 |
jobId |
string |
作业 ID。 |
lastUpdatedDateTime |
string (date-time) |
更新作业的最后一个日期。 |
result |
表示训练任务的详细结果。 |
|
status |
作业状态。 |
|
warnings |
执行作业时遇到的警告。 |
TextAnalysisAuthoringWarning
表示执行请求时遇到的警告。
名称 | 类型 | 说明 |
---|---|---|
code |
string |
警告代码。 |
message |
string |
警告消息。 |