ModelResult interface

Outer result returned by an entity recognizer like recognizeChoices().

Remarks

This structure is wrapped around the recognized result and contains start and end position information to identify the span of text in the users utterance that was recognized. The actual result can be accessed through the resolution property.

Properties

end

End character position of the recognized substring.

resolution

The recognized entity.

start

Start character position of the recognized substring.

text

Substring of the utterance that was recognized.

typeName

Type of entity that was recognized.

Property Details

end

End character position of the recognized substring.

end: number

Property Value

number

resolution

The recognized entity.

resolution: T

Property Value

T

start

Start character position of the recognized substring.

start: number

Property Value

number

text

Substring of the utterance that was recognized.

text: string

Property Value

string

typeName

Type of entity that was recognized.

typeName: string

Property Value

string