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.object
FeaturesOperations

Constructor

FeaturesOperations(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_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

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

entity_id
str
Required

The entity extractor ID.

feature_relation_create_object
ModelFeatureInformation
Required

A Feature relation information object.

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

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

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

intent_id
str
Required

The intent classifier ID.

feature_relation_create_object
ModelFeatureInformation
Required

A Feature relation information object.

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

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

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

phraselist_create_object
PhraselistCreateObject
Required

A Phraselist object containing Name, comma-separated Phrases and the isExchangeable boolean. Default value for isExchangeable is true.

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

int or ClientRawResponse if raw=true

Return type

int,

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

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

phraselist_id
int
Required

The ID of the feature to be deleted.

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

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

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

phraselist_id
int
Required

The ID of the feature to be retrieved.

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

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

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.

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

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

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.

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

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

app_id
str
Required

The application ID.

version_id
str
Required

The version ID.

phraselist_id
int
Required

The ID of the feature to be updated.

phraselist_update_object
PhraselistUpdateObject
default value: None

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.

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

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'>