Freigeben über


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

Name Description
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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

entity_id
Required
str

The entity extractor ID.

feature_relation_create_object
Required

A Feature relation information object.

custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

OperationStatus or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

intent_id
Required
str

The intent classifier ID.

feature_relation_create_object
Required

A Feature relation information object.

custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

OperationStatus or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

phraselist_create_object
Required

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

custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
int,
<xref:msrest.pipeline.ClientRawResponse>

int or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

phraselist_id
Required
int

The ID of the feature to be deleted.

custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

OperationStatus or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

phraselist_id
Required
int

The ID of the feature to be retrieved.

custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

PhraseListFeatureInfo or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

skip
int

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

Default value: 0
take
int

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

Default value: 100
custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

FeaturesResponseObject or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

skip
int

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

Default value: 0
take
int

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

Default value: 100
custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

list or ClientRawResponse if raw=true

Exceptions

Type Description

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

Name Description
app_id
Required
str

The application ID.

version_id
Required
str

The version ID.

phraselist_id
Required
int

The ID of the feature to be updated.

phraselist_update_object

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.

Default value: None
custom_headers

headers that will be added to the request

Default value: None
raw

returns the direct response alongside the deserialized response

Default value: False
operation_config
Required

Operation configuration overrides.

Returns

Type Description
<xref:msrest.pipeline.ClientRawResponse>

OperationStatus or ClientRawResponse if raw=true

Exceptions

Type Description

Attributes

models

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