IIntentRecognizerResult interface

Results returned by an intent recognizer.

Extends

Properties

entities

List of entities recognized.

expression

A regular expression that was matched.

intent

Top intent that was matched.

intents

Full list of intents that were matched.

matched

The results of the expression that was matched. matched[0] will be the text that was matched and matched[1...n] is the result of capture groups.

score

Confidence that the users utterance was understood on a scale from 0.0 - 1.0.

Property Details

entities

List of entities recognized.

entities?: IEntity[]

Property Value

expression

A regular expression that was matched.

expression?: RegExp

Property Value

RegExp

intent

Top intent that was matched.

intent: string

Property Value

string

intents

Full list of intents that were matched.

intents?: IIntent[]

Property Value

matched

The results of the expression that was matched. matched[0] will be the text that was matched and matched[1...n] is the result of capture groups.

matched?: string[]

Property Value

string[]

score

Confidence that the users utterance was understood on a scale from 0.0 - 1.0.

score: number

Property Value

number