IntentRecognizer.AddIntent Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
AddIntent(String) |
Adds a simple phrase that may be spoken by the user, indicating a specific user intent. |
AddIntent(LanguageUnderstandingModel, String) |
Adds a single intent by name from the specified Language Understanding Model. For PatternMatchingModel and ConversationalLanguageUnderstandingModel types, this will clear any existing models before enabling it. For these types, the intentName is ignored. |
AddIntent(String, String) |
Adds a simple phrase that may be spoken by the user, indicating a specific user intent. |
AddIntent(LanguageUnderstandingModel, String, String) |
Adds a single intent by name from the specified Language Understanding Model. For PatternMatchingModel and ConversationalLanguageUnderstandingModel types, this will clear any existing models before enabling it. For these types, the intentName and intentId are ignored. |
AddIntent(String)
Adds a simple phrase that may be spoken by the user, indicating a specific user intent.
public void AddIntent (string simplePhrase);
member this.AddIntent : string -> unit
Public Sub AddIntent (simplePhrase As String)
Parameters
- simplePhrase
- String
The phrase corresponding to the intent.
Remarks
Once recognized, the IntentRecognitionResult's IntentId property will match the simplePhrase specified here.
Applies to
AddIntent(LanguageUnderstandingModel, String)
Adds a single intent by name from the specified Language Understanding Model. For PatternMatchingModel and ConversationalLanguageUnderstandingModel types, this will clear any existing models before enabling it. For these types, the intentName is ignored.
public void AddIntent (Microsoft.CognitiveServices.Speech.Intent.LanguageUnderstandingModel model, string intentName);
member this.AddIntent : Microsoft.CognitiveServices.Speech.Intent.LanguageUnderstandingModel * string -> unit
Public Sub AddIntent (model As LanguageUnderstandingModel, intentName As String)
Parameters
The language understanding model containing the intent.
- intentName
- String
The name of the single intent to be included from the language understanding model.
Remarks
Once recognized, the IntentId property will contain the intentName specified here.
Applies to
AddIntent(String, String)
Adds a simple phrase that may be spoken by the user, indicating a specific user intent.
public void AddIntent (string simplePhrase, string intentId);
member this.AddIntent : string * string -> unit
Public Sub AddIntent (simplePhrase As String, intentId As String)
Parameters
- simplePhrase
- String
The phrase corresponding to the intent.
Remarks
Once recognized, the result's intent id will match the id supplied here.
Applies to
AddIntent(LanguageUnderstandingModel, String, String)
Adds a single intent by name from the specified Language Understanding Model. For PatternMatchingModel and ConversationalLanguageUnderstandingModel types, this will clear any existing models before enabling it. For these types, the intentName and intentId are ignored.
public void AddIntent (Microsoft.CognitiveServices.Speech.Intent.LanguageUnderstandingModel model, string intentName, string intentId);
member this.AddIntent : Microsoft.CognitiveServices.Speech.Intent.LanguageUnderstandingModel * string * string -> unit
Public Sub AddIntent (model As LanguageUnderstandingModel, intentName As String, intentId As String)
Parameters
The language understanding model containing the intent.
- intentName
- String
The name of the single intent to be included from the language understanding model.
- intentId
- String
A custom id string to be returned in the IntentRecognitionResult's IntentId property.