Examples - List
Vrátí ukázkové promluvy, které se mají zkontrolovat z verze aplikace.
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/examples
GET {Endpoint}/luis/authoring/v3.0-preview/apps/{appId}/versions/{versionId}/examples?skip={skip}&take={take}&enableNestedChildren={enableNestedChildren}
Parametry identifikátoru URI
Name | V | Vyžadováno | Typ | Description |
---|---|---|---|---|
app
|
path | True |
string uuid |
ID aplikace. |
Endpoint
|
path | True |
string |
Podporované koncové body služeb Cognitive Services (protokol a název hostitele, například: https://westus.api.cognitive.microsoft.com). |
version
|
path | True |
string |
ID verze. |
enable
|
query |
boolean |
Přepíná vnořený/plochý formát. |
|
skip
|
query |
integer |
Počet položek, které se mají přeskočit. Výchozí hodnota je 0. |
|
take
|
query |
integer |
Počet položek, které se mají vrátit. Maximální velikost stránky je 500. Výchozí hodnota je 100. |
Hlavička požadavku
Name | Vyžadováno | Typ | Description |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Odpovědi
Name | Typ | Description |
---|---|---|
200 OK |
Seznam předpovědí a dvojic popisků pro každý příklad promluvy v aplikaci. |
|
Other Status Codes |
Odpověď na chybu. |
Zabezpečení
Ocp-Apim-Subscription-Key
Type:
apiKey
In:
header
Příklady
Successful Review Labeled Examples request
Sample Request
GET {Endpoint}/luis/authoring/v3.0-preview/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/examples?enableNestedChildren=False
Sample Response
[
{
"id": -12,
"text": "what's the weather like in seattle?",
"tokenizedText": [
"what",
"'",
"s",
"the",
"weather",
"like",
"in",
"seattle",
"?"
],
"intentLabel": "GetWeather",
"entityLabels": [
{
"entityName": "Location",
"startTokenIndex": 7,
"endTokenIndex": 7
}
],
"intentPredictions": [
{
"name": "GetWeather",
"score": 1
},
{
"name": "None",
"score": 0.21
},
{
"name": "BookFlight",
"score": 0
}
],
"entityPredictions": [
{
"entityName": "Location",
"startTokenIndex": 7,
"endTokenIndex": 7,
"phrase": "seattle"
}
]
},
{
"id": -11,
"text": "book me a flight from cairo to redmond next thursday",
"tokenizedText": [
"book",
"me",
"a",
"flight",
"from",
"cairo",
"to",
"redmond",
"next",
"thursday"
],
"intentLabel": "BookFlight",
"entityLabels": [
{
"entityName": "Location",
"startTokenIndex": 7,
"endTokenIndex": 7,
"role": "To"
},
{
"entityName": "Location",
"startTokenIndex": 5,
"endTokenIndex": 5,
"role": "from"
}
],
"intentPredictions": [
{
"name": "BookFlight",
"score": 0.93
},
{
"name": "None",
"score": 0.41
},
{
"name": "GetWeather",
"score": 0
}
],
"entityPredictions": [
{
"entityName": "datetime",
"startTokenIndex": 8,
"endTokenIndex": 9,
"phrase": "next thursday"
}
]
}
]
Definice
Name | Description |
---|---|
Entity |
Definuje typ a pozici extrahované entity v příkladu. |
Entity |
Navrhovaná entita |
Error |
Chybová odpověď při vyvolání operace v rozhraní API |
Intent |
Navrhovaný záměr |
Labeled |
Predikce a dvojice popisků příkladu. |
EntityLabel
Definuje typ a pozici extrahované entity v příkladu.
Name | Typ | Description |
---|---|---|
children |
Definuje typ a pozici extrahované entity v příkladu. |
|
endTokenIndex |
integer |
Index v promluvě, kde končí extrahovaná entita. |
entityName |
string |
Typ entity. |
role |
string |
Role předpovězené entity |
roleId |
string |
ID role pro předpovězenou entitu |
startTokenIndex |
integer |
Index v promluvě, kde začíná extrahovaná entita. |
EntityPrediction
Navrhovaná entita
Name | Typ | Description |
---|---|---|
children |
Navrhovaná entita |
|
endTokenIndex |
integer |
Index v promluvě, kde končí extrahovaná entita. |
entityName |
string |
Název entity |
phrase |
string |
Skutečné tokeny, které tvoří entitu. |
startTokenIndex |
integer |
Index v promluvě, kde začíná extrahovaná entita. |
ErrorResponse
Chybová odpověď při vyvolání operace v rozhraní API
Name | Typ | Description |
---|---|---|
errorType |
string |
IntentPrediction
Navrhovaný záměr
Name | Typ | Description |
---|---|---|
name |
string |
Název záměru |
score |
number |
Skóre záměru na základě prediktivního modelu. |
LabeledUtterance
Predikce a dvojice popisků příkladu.
Name | Typ | Description |
---|---|---|
entityLabels |
Entity odpovídající příkladu. |
|
entityPredictions |
Seznam navrhovaných entit |
|
id |
integer |
ID označené promluvy. |
intentLabel |
string |
Záměr odpovídající příkladu. |
intentPredictions |
Seznam navrhovaných záměrů |
|
text |
string |
Promluva. Například "What's the weather like in seattle?" (Jaké je počasí v Seattlu?) |
tokenizedText |
string[] |
Promluva byla tokenizována. |