Features class
Class representing a Features.
Constructors
Features(LUISAuthoring |
Create a Features. |
Methods
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<FeaturesAddEntityFeatureResponse>
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
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
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<FeaturesAddIntentFeatureResponse>
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
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
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<FeaturesAddPhraseListResponse>
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<FeaturesDeletePhraseListResponse>
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
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
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<FeaturesGetPhraseListResponse>
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
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
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<FeaturesListResponse>
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
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
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.
The optional parameters
Returns
Promise<FeaturesListPhraseListsResponse>
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.
The optional parameters
- callback
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
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.
The optional parameters
Returns
Promise<FeaturesUpdatePhraseListResponse>
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.
The optional parameters
- callback
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
The callback