Features class

Class representing a Features.

Constructors

Features(LUISAuthoringClientContext)

Create a Features.

Methods

addEntityFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase)

Adds a new feature relation to be used by the entity in a version of the application.

addEntityFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase, ServiceCallback<OperationStatus>)
addEntityFeature(string, string, string, ModelFeatureInformation, ServiceCallback<OperationStatus>)
addIntentFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase)

Adds a new feature relation to be used by the intent in a version of the application.

addIntentFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase, ServiceCallback<OperationStatus>)
addIntentFeature(string, string, string, ModelFeatureInformation, ServiceCallback<OperationStatus>)
addPhraseList(string, string, PhraselistCreateObject, RequestOptionsBase)

Creates a new phraselist feature in a version of the application.

addPhraseList(string, string, PhraselistCreateObject, RequestOptionsBase, ServiceCallback<number>)
addPhraseList(string, string, PhraselistCreateObject, ServiceCallback<number>)
deletePhraseList(string, string, number, RequestOptionsBase)

Deletes a phraselist feature from a version of the application.

deletePhraseList(string, string, number, RequestOptionsBase, ServiceCallback<OperationStatus>)
deletePhraseList(string, string, number, ServiceCallback<OperationStatus>)
getPhraseList(string, string, number, RequestOptionsBase)

Gets phraselist feature info in a version of the application.

getPhraseList(string, string, number, RequestOptionsBase, ServiceCallback<PhraseListFeatureInfo>)
getPhraseList(string, string, number, ServiceCallback<PhraseListFeatureInfo>)
list(string, string, FeaturesListOptionalParams)

Gets all the extraction phraselist and pattern features in a version of the application.

list(string, string, FeaturesListOptionalParams, ServiceCallback<FeaturesResponseObject>)
list(string, string, ServiceCallback<FeaturesResponseObject>)
listPhraseLists(string, string, FeaturesListPhraseListsOptionalParams)

Gets all the phraselist features in a version of the application.

listPhraseLists(string, string, FeaturesListPhraseListsOptionalParams, ServiceCallback<PhraseListFeatureInfo[]>)
listPhraseLists(string, string, ServiceCallback<PhraseListFeatureInfo[]>)
updatePhraseList(string, string, number, FeaturesUpdatePhraseListOptionalParams)

Updates the phrases, the state and the name of the phraselist feature in a version of the application.

updatePhraseList(string, string, number, FeaturesUpdatePhraseListOptionalParams, ServiceCallback<OperationStatus>)
updatePhraseList(string, string, number, ServiceCallback<OperationStatus>)

Constructor Details

Features(LUISAuthoringClientContext)

Create a Features.

new Features(client: LUISAuthoringClientContext)

Parameters

client
LUISAuthoringClientContext

Reference to the service client.

Method Details

addEntityFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase)

Adds a new feature relation to be used by the entity in a version of the application.

function addEntityFeature(appId: string, versionId: string, entityId: string, featureRelationCreateObject: ModelFeatureInformation, options?: RequestOptionsBase): Promise<FeaturesAddEntityFeatureResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

entityId

string

The entity extractor ID.

featureRelationCreateObject
ModelFeatureInformation

A Feature relation information object.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FeaturesAddEntityFeatureResponse>

addEntityFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase, ServiceCallback<OperationStatus>)

function addEntityFeature(appId: string, versionId: string, entityId: string, featureRelationCreateObject: ModelFeatureInformation, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

entityId

string

The entity extractor ID.

featureRelationCreateObject
ModelFeatureInformation

A Feature relation information object.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

addEntityFeature(string, string, string, ModelFeatureInformation, ServiceCallback<OperationStatus>)

function addEntityFeature(appId: string, versionId: string, entityId: string, featureRelationCreateObject: ModelFeatureInformation, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

entityId

string

The entity extractor ID.

featureRelationCreateObject
ModelFeatureInformation

A Feature relation information object.

callback

ServiceCallback<OperationStatus>

The callback

addIntentFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase)

Adds a new feature relation to be used by the intent in a version of the application.

function addIntentFeature(appId: string, versionId: string, intentId: string, featureRelationCreateObject: ModelFeatureInformation, options?: RequestOptionsBase): Promise<FeaturesAddIntentFeatureResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

intentId

string

The intent classifier ID.

featureRelationCreateObject
ModelFeatureInformation

A Feature relation information object.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FeaturesAddIntentFeatureResponse>

addIntentFeature(string, string, string, ModelFeatureInformation, RequestOptionsBase, ServiceCallback<OperationStatus>)

function addIntentFeature(appId: string, versionId: string, intentId: string, featureRelationCreateObject: ModelFeatureInformation, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

intentId

string

The intent classifier ID.

featureRelationCreateObject
ModelFeatureInformation

A Feature relation information object.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

addIntentFeature(string, string, string, ModelFeatureInformation, ServiceCallback<OperationStatus>)

function addIntentFeature(appId: string, versionId: string, intentId: string, featureRelationCreateObject: ModelFeatureInformation, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

intentId

string

The intent classifier ID.

featureRelationCreateObject
ModelFeatureInformation

A Feature relation information object.

callback

ServiceCallback<OperationStatus>

The callback

addPhraseList(string, string, PhraselistCreateObject, RequestOptionsBase)

Creates a new phraselist feature in a version of the application.

function addPhraseList(appId: string, versionId: string, phraselistCreateObject: PhraselistCreateObject, options?: RequestOptionsBase): Promise<FeaturesAddPhraseListResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistCreateObject
PhraselistCreateObject

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

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FeaturesAddPhraseListResponse>

addPhraseList(string, string, PhraselistCreateObject, RequestOptionsBase, ServiceCallback<number>)

function addPhraseList(appId: string, versionId: string, phraselistCreateObject: PhraselistCreateObject, options: RequestOptionsBase, callback: ServiceCallback<number>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistCreateObject
PhraselistCreateObject

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

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<number>

The callback

addPhraseList(string, string, PhraselistCreateObject, ServiceCallback<number>)

function addPhraseList(appId: string, versionId: string, phraselistCreateObject: PhraselistCreateObject, callback: ServiceCallback<number>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistCreateObject
PhraselistCreateObject

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

callback

ServiceCallback<number>

The callback

deletePhraseList(string, string, number, RequestOptionsBase)

Deletes a phraselist feature from a version of the application.

function deletePhraseList(appId: string, versionId: string, phraselistId: number, options?: RequestOptionsBase): Promise<FeaturesDeletePhraseListResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be deleted.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FeaturesDeletePhraseListResponse>

deletePhraseList(string, string, number, RequestOptionsBase, ServiceCallback<OperationStatus>)

function deletePhraseList(appId: string, versionId: string, phraselistId: number, options: RequestOptionsBase, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be deleted.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

deletePhraseList(string, string, number, ServiceCallback<OperationStatus>)

function deletePhraseList(appId: string, versionId: string, phraselistId: number, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be deleted.

callback

ServiceCallback<OperationStatus>

The callback

getPhraseList(string, string, number, RequestOptionsBase)

Gets phraselist feature info in a version of the application.

function getPhraseList(appId: string, versionId: string, phraselistId: number, options?: RequestOptionsBase): Promise<FeaturesGetPhraseListResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be retrieved.

options
RequestOptionsBase

The optional parameters

Returns

Promise<Models.FeaturesGetPhraseListResponse>

getPhraseList(string, string, number, RequestOptionsBase, ServiceCallback<PhraseListFeatureInfo>)

function getPhraseList(appId: string, versionId: string, phraselistId: number, options: RequestOptionsBase, callback: ServiceCallback<PhraseListFeatureInfo>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be retrieved.

options
RequestOptionsBase

The optional parameters

callback

ServiceCallback<PhraseListFeatureInfo>

The callback

getPhraseList(string, string, number, ServiceCallback<PhraseListFeatureInfo>)

function getPhraseList(appId: string, versionId: string, phraselistId: number, callback: ServiceCallback<PhraseListFeatureInfo>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be retrieved.

callback

ServiceCallback<PhraseListFeatureInfo>

The callback

list(string, string, FeaturesListOptionalParams)

Gets all the extraction phraselist and pattern features in a version of the application.

function list(appId: string, versionId: string, options?: FeaturesListOptionalParams): Promise<FeaturesListResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
FeaturesListOptionalParams

The optional parameters

Returns

Promise<Models.FeaturesListResponse>

list(string, string, FeaturesListOptionalParams, ServiceCallback<FeaturesResponseObject>)

function list(appId: string, versionId: string, options: FeaturesListOptionalParams, callback: ServiceCallback<FeaturesResponseObject>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
FeaturesListOptionalParams

The optional parameters

callback

ServiceCallback<FeaturesResponseObject>

The callback

list(string, string, ServiceCallback<FeaturesResponseObject>)

function list(appId: string, versionId: string, callback: ServiceCallback<FeaturesResponseObject>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

callback

ServiceCallback<FeaturesResponseObject>

The callback

listPhraseLists(string, string, FeaturesListPhraseListsOptionalParams)

Gets all the phraselist features in a version of the application.

function listPhraseLists(appId: string, versionId: string, options?: FeaturesListPhraseListsOptionalParams): Promise<FeaturesListPhraseListsResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
FeaturesListPhraseListsOptionalParams

The optional parameters

Returns

Promise<Models.FeaturesListPhraseListsResponse>

listPhraseLists(string, string, FeaturesListPhraseListsOptionalParams, ServiceCallback<PhraseListFeatureInfo[]>)

function listPhraseLists(appId: string, versionId: string, options: FeaturesListPhraseListsOptionalParams, callback: ServiceCallback<PhraseListFeatureInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

options
FeaturesListPhraseListsOptionalParams

The optional parameters

callback

ServiceCallback<PhraseListFeatureInfo[]>

The callback

listPhraseLists(string, string, ServiceCallback<PhraseListFeatureInfo[]>)

function listPhraseLists(appId: string, versionId: string, callback: ServiceCallback<PhraseListFeatureInfo[]>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

callback

ServiceCallback<PhraseListFeatureInfo[]>

The callback

updatePhraseList(string, string, number, FeaturesUpdatePhraseListOptionalParams)

Updates the phrases, the state and the name of the phraselist feature in a version of the application.

function updatePhraseList(appId: string, versionId: string, phraselistId: number, options?: FeaturesUpdatePhraseListOptionalParams): Promise<FeaturesUpdatePhraseListResponse>

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be updated.

options
FeaturesUpdatePhraseListOptionalParams

The optional parameters

Returns

Promise<Models.FeaturesUpdatePhraseListResponse>

updatePhraseList(string, string, number, FeaturesUpdatePhraseListOptionalParams, ServiceCallback<OperationStatus>)

function updatePhraseList(appId: string, versionId: string, phraselistId: number, options: FeaturesUpdatePhraseListOptionalParams, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be updated.

options
FeaturesUpdatePhraseListOptionalParams

The optional parameters

callback

ServiceCallback<OperationStatus>

The callback

updatePhraseList(string, string, number, ServiceCallback<OperationStatus>)

function updatePhraseList(appId: string, versionId: string, phraselistId: number, callback: ServiceCallback<OperationStatus>)

Parameters

appId

string

The application ID.

versionId

string

The version ID.

phraselistId

number

The ID of the feature to be updated.

callback

ServiceCallback<OperationStatus>

The callback