RegexRecognizer class

Recognizer implementation which uses regex expressions to identify intents.

Extends

Properties

$kind
entities

The entity recognizers.

intents

Array of patterns -> intent names.

Inherited Properties

id

Recognizers unique ID.

logPersonalInformation

(Optional) Flag that designates whether personally identifiable information (PII) should log to telemetry.

telemetryClient

The telemetry client for logging events. Default this to the NullTelemetryClient, which does nothing.

Methods

getConverter(Object)
recognize(DialogContext, Activity, [key: string]: string, [key: string]: number)

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

Inherited Methods

configure(Record<string, unknown>)

Fluent method for configuring the object.

Property Details

$kind

static $kind: string

Property Value

string

entities

The entity recognizers.

entities: EntityRecognizer[]

Property Value

intents

Array of patterns -> intent names.

intents: IntentPattern[]

Property Value

Inherited Property Details

id

Recognizers unique ID.

id: string

Property Value

string

Inherited From Recognizer.id

logPersonalInformation

(Optional) Flag that designates whether personally identifiable information (PII) should log to telemetry.

logPersonalInformation: BoolExpression

Property Value

BoolExpression

Inherited From AdaptiveRecognizer.logPersonalInformation

telemetryClient

The telemetry client for logging events. Default this to the NullTelemetryClient, which does nothing.

telemetryClient: BotTelemetryClient

Property Value

BotTelemetryClient

Inherited From Recognizer.telemetryClient

Method Details

getConverter(Object)

function getConverter(property: Object): Converter | ConverterFactory

Parameters

property

Object

The key of the conditional selector configuration.

Returns

Converter | ConverterFactory

The converter for the selector configuration.

recognize(DialogContext, Activity, [key: string]: string, [key: string]: number)

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

function recognize(dialogContext: DialogContext, activity: Activity, telemetryProperties?: [key: string]: string, telemetryMetrics?: [key: string]: number): Promise<RecognizerResult>

Parameters

dialogContext

DialogContext

The DialogContext for the current turn of conversation.

activity

Activity

(xref:botframework-schema.Activity) to recognize.

telemetryProperties

[key: string]: string

Optional, additional properties to be logged to telemetry with the LuisResult event.

telemetryMetrics

[key: string]: number

Optional, additional metrics to be logged to telemetry with the LuisResult event.

Returns

Promise<RecognizerResult>

Analysis of utterance.

Inherited Method Details

configure(Record<string, unknown>)

Fluent method for configuring the object.

function configure(config: Record<string, unknown>): this

Parameters

config

Record<string, unknown>

Configuration settings to apply.

Returns

this

The Configurable after the operation is complete.

Inherited From Configurable.configure