Megosztás a következőn keresztül:


Text Analysis Authoring - Get Trained Model

Lekéri egy betanított modell részleteit.

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

URI-paraméterek

Name In Kötelező Típus Description
Endpoint
path True

string

Támogatott Cognitive Services-végpont (például https://.api.cognitiveservices.azure.com).

projectName
path True

string

maxLength: 100

A használni kívánt projekt neve.

trainedModelLabel
path True

string

A betanított modell címkéje.

api-version
query True

string

Ügyfél API-verziója.

Kérelem fejléce

Name Kötelező Típus Description
Ocp-Apim-Subscription-Key True

string

Egy language service-erőforrás előfizetési kulcsa.

Válaszok

Name Típus Description
200 OK

TextAnalysisAuthoringProjectTrainedModel

Betanított modelladatok

Other Status Codes

ErrorResponse

Hibaválasz.

Biztonság

Ocp-Apim-Subscription-Key

Egy language service-erőforrás előfizetési kulcsa.

Típus: apiKey
In: header

Példák

Successful Get Model

Mintakérelem

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

Mintaválasz

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

Definíciók

Name Description
Error

A hibaobjektum.

ErrorCode

Ember által olvasható hibakód.

ErrorResponse

Hibaválasz.

InnerErrorCode

Ember által olvasható hibakód.

InnerErrorModel

Egy objektum, amely részletesebb információkat tartalmaz a hibáról. A Microsoft One API irányelvei szerint – https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

TextAnalysisAuthoringProjectTrainedModel

Betanított modellt jelöl.

Error

A hibaobjektum.

Name Típus Description
code

ErrorCode

A kiszolgáló által definiált hibakódok egyike.

details

Error[]

A jelentett hibához vezető konkrét hibák részleteinek tömbje.

innererror

InnerErrorModel

Egy objektum, amely az aktuális objektumnál pontosabb információt tartalmaz a hibáról.

message

string

A hiba ember által olvasható ábrázolása.

target

string

A hiba célja.

ErrorCode

Ember által olvasható hibakód.

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

ErrorResponse

Hibaválasz.

Name Típus Description
error

Error

A hibaobjektum.

InnerErrorCode

Ember által olvasható hibakód.

Érték Description
AzureCognitiveSearchNotFound
AzureCognitiveSearchThrottling
EmptyRequest
ExtractionFailure
InvalidCountryHint
InvalidDocument
InvalidDocumentBatch
InvalidParameterValue
InvalidRequest
InvalidRequestBodyFormat
KnowledgeBaseNotFound
MissingInputDocuments
ModelVersionIncorrect
UnsupportedLanguageCode

InnerErrorModel

Egy objektum, amely részletesebb információkat tartalmaz a hibáról. A Microsoft One API irányelvei szerint – https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.

Name Típus Description
code

InnerErrorCode

A kiszolgáló által definiált hibakódok egyike.

details

object

Hiba részletei.

innererror

InnerErrorModel

Egy objektum, amely az aktuális objektumnál pontosabb információt tartalmaz a hibáról.

message

string

Hibaüzenet.

target

string

Hibacél.

TextAnalysisAuthoringProjectTrainedModel

Betanított modellt jelöl.

Name Típus Description
label

string

A betanított modell címkéje.

lastTrainedDateTime

string (date-time)

A modell utolsó betanított dátumideje.

lastTrainingDurationInSeconds

integer (int32)

A modell utolsó betanítási kérésének időtartama másodpercben.

modelExpirationDate

string (date)

A modell lejárati dátuma.

modelId

string

A modell azonosítója.

modelTrainingConfigVersion

string

A modell betanítási konfigurációjának verziója.