共用方式為


Text Analysis Authoring - Get Trained Model

取得定型模型的詳細數據。

GET {Endpoint}/language/authoring/analyze-text/projects/{projectName}/models/{trainedModelLabel}?api-version=2022-05-01

URI 參數

名稱 位於 必要 類型 Description
Endpoint
path True

string

支援的認知服務端點 (例如,https://.api.cognitiveservices.azure.com).

projectName
path True

string

maxLength: 100

要使用的項目名稱。

trainedModelLabel
path True

string

定型的模型標籤。

api-version
query True

string

用戶端 API 版本。

要求標頭

名稱 必要 類型 Description
Ocp-Apim-Subscription-Key True

string

語言服務資源的訂用帳戶金鑰。

回應

名稱 類型 Description
200 OK

TextAnalysisAuthoringProjectTrainedModel

定型的模型資訊

Other Status Codes

ErrorResponse

錯誤回應。

安全性

Ocp-Apim-Subscription-Key

語言服務資源的訂用帳戶金鑰。

類型: apiKey
位於: header

範例

Successful Get Model

範例要求

GET {Endpoint}/language/authoring/analyze-text/projects/LoanAgreements/models/model1?api-version=2022-05-01

範例回覆

{
  "label": "model1",
  "modelId": "model1-20220418T034749-299f45b8114849538c1a750b21b05a94",
  "lastTrainedDateTime": "2022-04-18T15:47:49Z",
  "lastTrainingDurationInSeconds": 186,
  "modelExpirationDate": "2022-10-28",
  "modelTrainingConfigVersion": "2022-05-01"
}

定義

名稱 Description
Error

error 物件。

ErrorCode

人類可讀取的錯誤碼。

ErrorResponse

錯誤回應。

InnerErrorCode

人類可讀取的錯誤碼。

InnerErrorModel

物件,包含有關錯誤的更特定資訊。 根據Microsoft一個 API 指導方針 - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses

TextAnalysisAuthoringProjectTrainedModel

表示已定型的模型。

Error

error 物件。

名稱 類型 Description
code

ErrorCode

其中一組伺服器定義的錯誤碼。

details

Error[]

導致此錯誤之特定錯誤的詳細數據陣列。

innererror

InnerErrorModel

物件,包含與目前對象有關錯誤更具體的資訊。

message

string

錯誤的人類可讀取表示法。

target

string

錯誤的目標。

ErrorCode

人類可讀取的錯誤碼。

Description
AzureCognitiveSearchIndexLimitReached
AzureCognitiveSearchIndexNotFound
AzureCognitiveSearchNotFound
AzureCognitiveSearchThrottling
Conflict
Forbidden
InternalServerError
InvalidArgument
InvalidRequest
NotFound
OperationNotFound
ProjectNotFound
QuotaExceeded
ServiceUnavailable
Timeout
TooManyRequests
Unauthorized
Warning

ErrorResponse

錯誤回應。

名稱 類型 Description
error

Error

error 物件。

InnerErrorCode

人類可讀取的錯誤碼。

Description
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

名稱 類型 Description
code

InnerErrorCode

其中一組伺服器定義的錯誤碼。

details

object

錯誤詳細數據。

innererror

InnerErrorModel

物件,包含與目前對象有關錯誤更具體的資訊。

message

string

錯誤資訊。

target

string

錯誤目標。

TextAnalysisAuthoringProjectTrainedModel

表示已定型的模型。

名稱 類型 Description
label

string

定型的模型標籤。

lastTrainedDateTime

string (date-time)

模型的最後定型日期時間。

lastTrainingDurationInSeconds

integer (int32)

模型最後一個定型要求的持續時間,以秒為單位。

modelExpirationDate

string (date)

模型到期日。

modelId

string

模型標識碼。

modelTrainingConfigVersion

string

模型定型組態版本。