Compose Custom Models Async - Compose Custom Models Async
Buat yang dilatih dengan model label ke dalam satu model yang disusur.
Menulikan permintaan akan menyertakan daftar id model.
Hal ini akan memvalidasi apa yang semua model dilatih dengan model label atau model tersusun.
Hal ini akan memvalidasi batas model yang disatukan.
POST {endpoint}/formrecognizer/v2.1-preview.2/custom/models/compose
Parameter URI
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
endpoint
|
path | True |
|
Titik akhir Cognitive Services yang didukung (protokol dan nama host, misalnya: https://westus2.api.cognitive.microsoft.com). |
Header Permintaan
| Name | Required | Type | Description |
|---|---|---|---|
| Ocp-Apim-Subscription-Key | True |
|
Isi Permintaan
| Name | Required | Type | Description |
|---|---|---|---|
| modelIds | True |
|
Daftar id model yang akan disusur. |
| modelName |
|
Nama model opsional yang ditentukan pengguna (panjang maks: 1024). |
Respons
| Name | Type | Description |
|---|---|---|
| 201 Created |
Permintaan berhasil diantrekan. Media Types: "application/json", "text/json" Headers
|
|
| Other Status Codes |
Entitas respons yang menyertai respons yang tidak berhasil berisi detail tambahan tentang kesalahan tersebut. Media Types: "application/json", "text/json" |
Keamanan
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Contoh
Compose custom models
Sample Request
POST {endpoint}/formrecognizer/v2.1-preview.2/custom/models/compose
{
"modelIds": [
"4afb20d6-3ed0-4cde-ba40-dbd6207268dd",
"6f841356-aa32-42c9-a739-2182c47b79c9"
]
}
Sample Response
Location: {endpoint}/formrecognizer/v2.1-preview.2/custom/models/{modelId}
Definisi
|
Compose |
Minta kontrak untuk operasi tulis. |
|
Error |
|
|
Error |
ComposeRequest
Minta kontrak untuk operasi tulis.
| Name | Type | Description |
|---|---|---|
| modelIds |
|
Daftar id model yang akan disusur. |
| modelName |
|
Nama model opsional yang ditentukan pengguna (panjang maks: 1024). |
ErrorInformation
| Name | Type | Description |
|---|---|---|
| code |
|
|
| message |
|
ErrorResponse
| Name | Type | Description |
|---|---|---|
| error |