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.objectExamplesOperations
Constructor
ExamplesOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
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
- example_label_object
- ExampleLabelObject
A labeled example utterance with the expected intent and entities.
- operation_config
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
- operation_config
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
- operation_config
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
- take
- int
The number of entries to return. Maximum page size is 500. Default is 100.
- operation_config
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.9.12\\x64\\lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ