Share via


CrossTrainedRecognizerSet Class

Definition

CrossTrainedRecognizerSet - Recognizer for selecting between cross trained recognizers.

public class CrossTrainedRecognizerSet : Microsoft.Bot.Builder.Dialogs.Adaptive.Recognizers.AdaptiveRecognizer
type CrossTrainedRecognizerSet = class
    inherit AdaptiveRecognizer
Public Class CrossTrainedRecognizerSet
Inherits AdaptiveRecognizer
Inheritance
CrossTrainedRecognizerSet

Remarks

Recognizer implementation which calls multiple recognizers that are cross trained with intents that model deferring to another recognizer. Each recognizer should have intents with special intent name pattern $"DefersToRecognizer_{Id}" to represent a cross-trained intent for another recognizer.

If there is consensus among the cross trained recognizers, the recognizerResult structure from the consensus recognizer is returned.

In the case that there is conflicting or ambiguous signals from the recognizers then an intent of "ChooseIntent" will be returned with the results of all of the recognizers.

Constructors

CrossTrainedRecognizerSet(String, Int32)

Initializes a new instance of the CrossTrainedRecognizerSet class.

Fields

ChooseIntent

Intent name that will be produced by this recognizer if the child recognizers do not have consensus for intents.

(Inherited from Recognizer)
DeferPrefix

Standard cross trained intent name prefix.

Kind

Class idenfifier.

NoneIntent

Standard none intent that means none of the recognizers recognize the intent.

(Inherited from Recognizer)

Properties

Id

Gets or sets id of the recognizer.

(Inherited from Recognizer)
LogPersonalInformation

Gets or sets the flag to determine if telemetry should include personal information in its log.

(Inherited from AdaptiveRecognizer)
Recognizers

Gets or sets the input recognizers.

TelemetryClient

Gets or sets the currently configured IBotTelemetryClient that logs the RecognizerResult event.

(Inherited from Recognizer)

Methods

FillRecognizerResultTelemetryProperties(RecognizerResult, Dictionary<String,String>, DialogContext)

Uses the RecognizerResult to create a list of properties to be included when tracking the result in telemetry.

(Inherited from AdaptiveRecognizer)
RecognizeAsync(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>)

Runs current DialogContext.TurnContext.Activity through a recognizer and returns a RecognizerResult.

RecognizeAsync<T>(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>)

Runs current DialogContext.TurnContext.Activity through a recognizer and returns a strongly-typed recognizer result using IRecognizerConvert.

(Inherited from Recognizer)
TrackRecognizerResult(DialogContext, String, Dictionary<String,String>, Dictionary<String,Double>)

Tracks an event with the event name provided using the TelemetryClient attaching the properties / metrics.

(Inherited from Recognizer)

Applies to