Examples - Add
Aggiunge un'espressione di esempio etichettata in una versione dell'applicazione.
POST {Endpoint}/luis/api/v2.0/apps/{appId}/versions/{versionId}/example
Nome | In | Necessario | Tipo | Descrizione |
---|---|---|---|---|
app
|
path | True |
string (uuid) |
ID applicazione. |
Endpoint
|
path | True |
string |
Endpoint di Servizi cognitivi supportati (protocollo e nome host, ad esempio: https://westus.api.cognitive.microsoft.com). |
version
|
path | True |
string |
ID versione. |
Nome | Necessario | Tipo | Descrizione |
---|---|---|---|
Ocp-Apim-Subscription-Key | True |
string |
Nome | Tipo | Descrizione |
---|---|---|
entityLabels |
Entità identificate all'interno dell'espressione di esempio. |
|
intentName |
string |
Finalità identificata che rappresenta l'espressione di esempio. |
text |
string |
Espressione di esempio. |
Nome | Tipo | Descrizione |
---|---|---|
201 Created |
ID dell'espressione di esempio creata. |
|
Other Status Codes |
Risposta errore. |
Tipo:
apiKey
In:
header
Esempio di richiesta
POST {Endpoint}/luis/api/v2.0/apps/86226c53-b7a6-416f-876b-226b2b5ab07b/versions/0.1/example
{
"text": "whats the weather in buenos aires?",
"intentName": "WeatherInPlace",
"entityLabels": [
{
"entityName": "Place",
"startCharIndex": 21,
"endCharIndex": 34
}
]
}
Risposta di esempio
{
"UtteranceText": "whats the weather in buenos aires?",
"ExampleId": -11
}
Nome | Descrizione |
---|---|
Entity |
Definisce il tipo di entità e la posizione dell'entità estratta all'interno dell'esempio. |
Error |
Risposta di errore quando si richiama un'operazione sull'API. |
Example |
Espressione di esempio con etichetta. |
Label |
Risposta quando si aggiunge un'espressione di esempio etichettata. |
Definisce il tipo di entità e la posizione dell'entità estratta all'interno dell'esempio.
Nome | Tipo | Descrizione |
---|---|---|
endCharIndex |
integer |
Indice all'interno dell'espressione in cui termina l'entità estratta. |
entityName |
string |
Tipo di entità. |
role |
string |
Ruolo dell'entità all'interno dell'espressione. |
startCharIndex |
integer |
Indice all'interno dell'espressione in cui inizia l'entità estratta. |
Risposta di errore quando si richiama un'operazione sull'API.
Nome | Tipo | Descrizione |
---|---|---|
errorType |
string |
Espressione di esempio con etichetta.
Nome | Tipo | Descrizione |
---|---|---|
entityLabels |
Entità identificate all'interno dell'espressione di esempio. |
|
intentName |
string |
Finalità identificata che rappresenta l'espressione di esempio. |
text |
string |
Espressione di esempio. |
Risposta quando si aggiunge un'espressione di esempio etichettata.
Nome | Tipo | Descrizione |
---|---|---|
ExampleId |
integer (int64) |
ID di esempio appena creato. |
UtteranceText |
string |
Espressione di esempio. |