Share via


RegexRecognizer Class

Definition

Recognizer implementation which uses regex expressions to identify intents.

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

Constructors

RegexRecognizer(String, Int32)

Initializes a new instance of the RegexRecognizer 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)
Kind

Class identifier.

NoneIntent

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

(Inherited from Recognizer)

Properties

Entities

Gets or sets the entity recognizers.

Id

Gets or sets id of the recognizer.

(Inherited from Recognizer)
Intents

Gets or sets intent patterns for recognizing intents using regular expressions.

LogPersonalInformation

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

(Inherited from AdaptiveRecognizer)
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