IntentRecognizer.ApplyLanguageModels 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.
Takes a collection of language understanding models, makes a copy of them, and applies them to the recognizer. This application takes effect at different times depending on the LanguageUnderstandingModel type. PatternMatchingModels will become active immediately whereas LanguageUnderstandingModels utilizing the LUIS service will become active immediately unless the recognizer is in the middle of intent recognition in which case it will take effect after the next Recognized event.
public bool ApplyLanguageModels (Microsoft.CognitiveServices.Speech.Intent.LanguageUnderstandingModelCollection collection);
member this.ApplyLanguageModels : Microsoft.CognitiveServices.Speech.Intent.LanguageUnderstandingModelCollection -> bool
Public Function ApplyLanguageModels (collection As LanguageUnderstandingModelCollection) As Boolean
Parameters
- collection
- LanguageUnderstandingModelCollection
A LanguageUnderstandingModelCollection of LanguageUnderstandingModels.
Returns
True if the application of the models takes effect immediately. Otherwise false.
Remarks
This replaces any previously applied models.
Applies to
Azure SDK for .NET