Examples class

Classe représentant un Examples.

Constructeurs

Examples(LUISAuthoringClientContext)

Créez un exemple.

Méthodes

add(string, string, ExampleLabelObject, ExamplesAddOptionalParams)

Ajoute un exemple d’énoncé étiqueté dans une version de l’application.

add(string, string, ExampleLabelObject, ExamplesAddOptionalParams, ServiceCallback<LabelExampleResponse>)
add(string, string, ExampleLabelObject, ServiceCallback<LabelExampleResponse>)
batch(string, string, ExampleLabelObject[], ExamplesBatchOptionalParams)

Ajoute un lot d’exemples d’énoncés étiquetés à une version de l’application.

batch(string, string, ExampleLabelObject[], ExamplesBatchOptionalParams, ServiceCallback<BatchLabelExample[]>)
batch(string, string, ExampleLabelObject[], ServiceCallback<BatchLabelExample[]>)
deleteMethod(string, string, number, RequestOptionsBase)

Supprime les exemples d’énoncés étiquetés avec l’ID spécifié d’une version de l’application.

deleteMethod(string, string, number, RequestOptionsBase, ServiceCallback<OperationStatus>)
deleteMethod(string, string, number, ServiceCallback<OperationStatus>)
list(string, string, ExamplesListOptionalParams)

Retourne des exemples d’énoncés à examiner à partir d’une version de l’application.

list(string, string, ExamplesListOptionalParams, ServiceCallback<LabeledUtterance[]>)
list(string, string, ServiceCallback<LabeledUtterance[]>)

Détails du constructeur

Examples(LUISAuthoringClientContext)

Créez un exemple.

new Examples(client: LUISAuthoringClientContext)

Paramètres

client
LUISAuthoringClientContext

Référence au client de service.

Détails de la méthode

add(string, string, ExampleLabelObject, ExamplesAddOptionalParams)

Ajoute un exemple d’énoncé étiqueté dans une version de l’application.

function add(appId: string, versionId: string, exampleLabelObject: ExampleLabelObject, options?: ExamplesAddOptionalParams): Promise<ExamplesAddResponse>

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleLabelObject
ExampleLabelObject

Exemple d’énoncé étiqueté avec l’intention et les entités attendues.

options
ExamplesAddOptionalParams

Paramètres facultatifs

Retours

Promise<Models.ExamplesAddResponse>

add(string, string, ExampleLabelObject, ExamplesAddOptionalParams, ServiceCallback<LabelExampleResponse>)

function add(appId: string, versionId: string, exampleLabelObject: ExampleLabelObject, options: ExamplesAddOptionalParams, callback: ServiceCallback<LabelExampleResponse>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleLabelObject
ExampleLabelObject

Exemple d’énoncé étiqueté avec l’intention et les entités attendues.

options
ExamplesAddOptionalParams

Paramètres facultatifs

add(string, string, ExampleLabelObject, ServiceCallback<LabelExampleResponse>)

function add(appId: string, versionId: string, exampleLabelObject: ExampleLabelObject, callback: ServiceCallback<LabelExampleResponse>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleLabelObject
ExampleLabelObject

Exemple d’énoncé étiqueté avec l’intention et les entités attendues.

batch(string, string, ExampleLabelObject[], ExamplesBatchOptionalParams)

Ajoute un lot d’exemples d’énoncés étiquetés à une version de l’application.

function batch(appId: string, versionId: string, exampleLabelObjectArray: ExampleLabelObject[], options?: ExamplesBatchOptionalParams): Promise<ExamplesBatchResponse>

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleLabelObjectArray

ExampleLabelObject[]

Tableau d’exemples d’énoncés.

options
ExamplesBatchOptionalParams

Paramètres facultatifs

Retours

Promise<Models.ExamplesBatchResponse>

batch(string, string, ExampleLabelObject[], ExamplesBatchOptionalParams, ServiceCallback<BatchLabelExample[]>)

function batch(appId: string, versionId: string, exampleLabelObjectArray: ExampleLabelObject[], options: ExamplesBatchOptionalParams, callback: ServiceCallback<BatchLabelExample[]>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleLabelObjectArray

ExampleLabelObject[]

Tableau d’exemples d’énoncés.

options
ExamplesBatchOptionalParams

Paramètres facultatifs

callback

ServiceCallback<BatchLabelExample[]>

Rappel

batch(string, string, ExampleLabelObject[], ServiceCallback<BatchLabelExample[]>)

function batch(appId: string, versionId: string, exampleLabelObjectArray: ExampleLabelObject[], callback: ServiceCallback<BatchLabelExample[]>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleLabelObjectArray

ExampleLabelObject[]

Tableau d’exemples d’énoncés.

callback

ServiceCallback<BatchLabelExample[]>

Rappel

deleteMethod(string, string, number, RequestOptionsBase)

Supprime les exemples d’énoncés étiquetés avec l’ID spécifié d’une version de l’application.

function deleteMethod(appId: string, versionId: string, exampleId: number, options?: RequestOptionsBase): Promise<ExamplesDeleteMethodResponse>

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleId

number

ID de l’exemple.

options
RequestOptionsBase

Paramètres facultatifs

Retours

Promise<Models.ExamplesDeleteMethodResponse>

deleteMethod(string, string, number, RequestOptionsBase, ServiceCallback<OperationStatus>)

function deleteMethod(appId: string, versionId: string, exampleId: number, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleId

number

ID de l’exemple.

options
RequestOptionsBase

Paramètres facultatifs

callback

ServiceCallback<OperationStatus>

Rappel

deleteMethod(string, string, number, ServiceCallback<OperationStatus>)

function deleteMethod(appId: string, versionId: string, exampleId: number, callback: ServiceCallback<OperationStatus>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

exampleId

number

ID de l’exemple.

callback

ServiceCallback<OperationStatus>

Rappel

list(string, string, ExamplesListOptionalParams)

Retourne des exemples d’énoncés à examiner à partir d’une version de l’application.

function list(appId: string, versionId: string, options?: ExamplesListOptionalParams): Promise<ExamplesListResponse>

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

options
ExamplesListOptionalParams

Paramètres facultatifs

Retours

Promise<Models.ExamplesListResponse>

list(string, string, ExamplesListOptionalParams, ServiceCallback<LabeledUtterance[]>)

function list(appId: string, versionId: string, options: ExamplesListOptionalParams, callback: ServiceCallback<LabeledUtterance[]>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

options
ExamplesListOptionalParams

Paramètres facultatifs

callback

ServiceCallback<LabeledUtterance[]>

Rappel

list(string, string, ServiceCallback<LabeledUtterance[]>)

function list(appId: string, versionId: string, callback: ServiceCallback<LabeledUtterance[]>)

Paramètres

appId

string

L’ID de l'application.

versionId

string

ID de version.

callback

ServiceCallback<LabeledUtterance[]>

Rappel