Model - Examples
Lekéri az adott szándék vagy entitásmodell kimondott példaszövegeit az alkalmazás egy verziójában.
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/models/{modelId}/examples
GET {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/models/{modelId}/examples?skip={skip}&take={take}
URI-paraméterek
Name | In | Kötelező | Típus | Description |
---|---|---|---|---|
app
|
path | True |
string uuid |
Az alkalmazás azonosítója. |
Endpoint
|
path | True |
string |
Támogatott Cognitive Services-végpontok (protokoll és állomásnév, például: https://westus.api.cognitive.microsoft.com). |
model
|
path | True |
string |
A modell azonosítója (GUID). |
version
|
path | True |
string |
A verzióazonosító. |
skip
|
query |
integer |
A kihagyandó bejegyzések száma. Az alapértelmezett érték 0. |
|
take
|
query |
integer |
A visszaadandó bejegyzések száma. A maximális oldalméret 500. Az alapértelmezett érték 100. |
Kérelem fejléce
Name | Kötelező | Típus | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Válaszok
Name | Típus | Description |
---|---|---|
200 OK |
A modellhez tartozó példaszövegek listája. |
|
Other Status Codes |
Hibaválasz. |
Biztonság
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Példák
Successful Get Examples Per Model Request
Sample Request
GET {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/models/e4770e43-233a-48ad-a1fa-54f4f97eff9f/examples
Sample Response
[
{
"id": 10002,
"text": "Lorem ipsum dolor sit amet"
},
{
"id": 10003,
"text": "consectetur adipiscing elit"
},
{
"id": 10004,
"text": "sed do eiusmod tempor incididunt"
}
]
Definíciók
Name | Description |
---|---|
Error |
Hibaválasz egy művelet API-n való meghívásakor. |
Label |
A példa kimondott szövegét tartalmazó objektum. |
ErrorResponse
Hibaválasz egy művelet API-n való meghívásakor.
Name | Típus | Description |
---|---|---|
errorType |
string |
LabelTextObject
A példa kimondott szövegét tartalmazó objektum.
Name | Típus | Description |
---|---|---|
id |
integer |
A címke azonosítója. |
text |
string |
A címke szövege. |