FeaturesOperations Class
FeaturesOperations 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.objectFeaturesOperations
Constructor
FeaturesOperations(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_entity_feature |
Adds a new feature relation to be used by the entity in a version of the application. |
| add_intent_feature |
Adds a new feature relation to be used by the intent in a version of the application. |
| add_phrase_list |
Creates a new phraselist feature in a version of the application. |
| delete_phrase_list |
Deletes a phraselist feature from a version of the application. |
| get_phrase_list |
Gets phraselist feature info in a version of the application. |
| list |
Gets all the extraction phraselist and pattern features in a version of the application. |
| list_phrase_lists |
Gets all the phraselist features in a version of the application. |
| update_phrase_list |
Updates the phrases, the state and the name of the phraselist feature in a version of the application. |
add_entity_feature
Adds a new feature relation to be used by the entity in a version of the application.
add_entity_feature(app_id, version_id, entity_id, feature_relation_create_object, custom_headers=None, raw=False, **operation_config)
Parameters
- feature_relation_create_object
- ModelFeatureInformation
A Feature relation information object.
- operation_config
Operation configuration overrides.
Returns
OperationStatus or ClientRawResponse if raw=true
Return type
Exceptions
add_intent_feature
Adds a new feature relation to be used by the intent in a version of the application.
add_intent_feature(app_id, version_id, intent_id, feature_relation_create_object, custom_headers=None, raw=False, **operation_config)
Parameters
- feature_relation_create_object
- ModelFeatureInformation
A Feature relation information object.
- operation_config
Operation configuration overrides.
Returns
OperationStatus or ClientRawResponse if raw=true
Return type
Exceptions
add_phrase_list
Creates a new phraselist feature in a version of the application.
add_phrase_list(app_id, version_id, phraselist_create_object, custom_headers=None, raw=False, **operation_config)
Parameters
- phraselist_create_object
- PhraselistCreateObject
A Phraselist object containing Name, comma-separated Phrases and the isExchangeable boolean. Default value for isExchangeable is true.
- operation_config
Operation configuration overrides.
Returns
int or ClientRawResponse if raw=true
Return type
Exceptions
delete_phrase_list
Deletes a phraselist feature from a version of the application.
delete_phrase_list(app_id, version_id, phraselist_id, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
OperationStatus or ClientRawResponse if raw=true
Return type
Exceptions
get_phrase_list
Gets phraselist feature info in a version of the application.
get_phrase_list(app_id, version_id, phraselist_id, custom_headers=None, raw=False, **operation_config)
Parameters
- operation_config
Operation configuration overrides.
Returns
PhraseListFeatureInfo or ClientRawResponse if raw=true
Return type
Exceptions
list
Gets all the extraction phraselist and pattern features in a version of the application.
list(app_id, version_id, skip=0, take=100, 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
FeaturesResponseObject or ClientRawResponse if raw=true
Return type
Exceptions
list_phrase_lists
Gets all the phraselist features in a version of the application.
list_phrase_lists(app_id, version_id, skip=0, take=100, 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
update_phrase_list
Updates the phrases, the state and the name of the phraselist feature in a version of the application.
update_phrase_list(app_id, version_id, phraselist_id, phraselist_update_object=None, custom_headers=None, raw=False, **operation_config)
Parameters
- phraselist_update_object
- PhraselistUpdateObject
The new values for: - Just a boolean called IsActive, in which case the status of the feature will be changed. - Name, Pattern, Mode, and a boolean called IsActive to update the feature.
- operation_config
Operation configuration overrides.
Returns
OperationStatus 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.13\\x64\\lib\\site-packages\\azure\\cognitiveservices\\language\\luis\\authoring\\models\\__init__.py'>
Feedback
Submit and view feedback for