IntentRecognizer.ApplyLanguageModels メソッド

定義

言語理解モデルのコレクションを取得し、それらのコピーを作成し、認識エンジンに適用します。 このアプリケーションは、LanguageUnderstandingModel の種類に応じて異なる時間に有効になります。 PatternMatchingModels はすぐにアクティブになりますが、LUIS サービスを利用する LanguageUnderstandingModels は、認識エンジンが意図認識の途中でない限り、すぐにアクティブになります。その場合、次の Recognized イベントの後に有効になります。

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

パラメーター

collection
LanguageUnderstandingModelCollection

LanguageUnderstandingModels への共有ポインターの LanguageUnderstandingModelCollection。

戻り値

True を指定すると、モデルの適用が直ちに有効になります。 それ以外の場合は false。

注釈

これにより、以前に適用されたすべてのモデルが置き換えられます。

適用対象