ChannelMentionEntityRecognizer Class

Definition

Recognizer which maps channel activity.Entities of type mention into RecognizerResult format.

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

Remarks

This makes it easy to pass explicit mentions from channels like Teams/Skype to LUIS models.

The generated entity is named 'channelMention' with resolution {name,id} like this:

"entities": {

"channelMention": [

 {

    "id": "28:0047c760-1f42-4a78-b1bd-9ecd95ec3615"

    "name":"Tess"

 }

],

"$instance": {

"channelMention": [

   {

       "startIndex": 10,

       "endIndex": 13,

       "score": 1.0,

       "text": "tess"

    }

 ]

}

}.

Constructors

ChannelMentionEntityRecognizer(String, Int32)

Initializes a new instance of the ChannelMentionEntityRecognizer 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

Id

Gets or sets id of the recognizer.

(Inherited from Recognizer)
LogPersonalInformation (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) (Inherited from AdaptiveRecognizer)
RecognizeAsync(DialogContext, Activity, CancellationToken, Dictionary<String,String>, Dictionary<String,Double>)

Runs current DialogContext.TurnContext.Activity through a recognizer and returns a generic recognizer result.

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