您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

ExamplesOperations Class

ExamplesOperations operations.

You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute.

Inheritance
builtins.object
ExamplesOperations

Constructor

ExamplesOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Methods

add

Adds a labeled example utterance in a version of the application.

batch

Adds a batch of labeled example utterances to a version of the application.

delete

Deletes the labeled example utterances with the specified ID from a version of the application.

list

Returns example utterances to be reviewed from a version of the application.

add

Adds a labeled example utterance in a version of the application.

add(app_id, version_id, example_label_object, enable_nested_children=False, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

example_label_object
ExampleLabelObject
Required

A labeled example utterance with the expected intent and entities.

enable_nested_children
bool
default value: False

Toggles nested/flat format

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

LabelExampleResponse or ClientRawResponse if raw=true

Return type

Exceptions

batch

Adds a batch of labeled example utterances to a version of the application.

batch(app_id, version_id, example_label_object_array, enable_nested_children=False, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

example_label_object_array
list[ExampleLabelObject]
Required

Array of example utterances.

enable_nested_children
bool
default value: False

Toggles nested/flat format

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

list or ClientRawResponse if raw=true

Return type

Exceptions

delete

Deletes the labeled example utterances with the specified ID from a version of the application.

delete(app_id, version_id, example_id, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

example_id
int
Required

The example ID.

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

OperationStatus or ClientRawResponse if raw=true

Return type

Exceptions

list

Returns example utterances to be reviewed from a version of the application.

list(app_id, version_id, skip=0, take=100, enable_nested_children=False, custom_headers=None, raw=False, **operation_config)

Parameters

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

skip
int
default value: 0

The number of entries to skip. Default value is 0.

take
int
default value: 100

The number of entries to return. Maximum page size is 500. Default is 100.

enable_nested_children
bool
default value: False

Toggles nested/flat format

custom_headers
dict
default value: None

headers that will be added to the request

raw
bool
default value: False

returns the direct response alongside the deserialized response

operation_config
Required

Operation configuration overrides.

Returns

list or ClientRawResponse if raw=true

Return type

Exceptions

Attributes

models

models = <module 'azure.cognitiveservices.language.luis.authoring.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.6.8\\x64\\lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>