Delen via


PatternMatchingEntity Class

Definition

Represents a pattern matching entity used for intent recognition.

public class PatternMatchingEntity
type PatternMatchingEntity = class
Public Class PatternMatchingEntity
Inheritance
PatternMatchingEntity

Constructors

PatternMatchingEntity(String, EntityType, EntityMatchMode, IEnumerable<String>)

Protected constructor that sets the properties with the input parameters.

Properties

EntityId

An Id used to define this entity if it is matched. This id must appear in an intent phrase or the entity will never be matched.

Mode

The EntityMatchMode of this Entity.

Phrases

A list of strings used to match the entity for List type entities. Strict Mode means the entity must appear in the list.

Type

The EntityType of this Entity.

Methods

CreateAnyEntity(String)

Creates a pattern matching entity using the specified intent ID.

CreateIntegerEntity(String)

Creates a pattern matching entity using the specified intent ID. The PrebuiltInteger Entity will match words representing numbers in lexical, digit, and ordinal formats.

CreateListEntity(String, EntityMatchMode, IEnumerable<String>)

Creates a pattern matching entity using the specified intent ID, EntityMatchMode, phrases. This entity type will match based on the phrases provided.

CreateListEntity(String, EntityMatchMode, String[])

Creates a pattern matching entity using the specified intent ID, EntityMatchMode, phrases. This entity type will match based on the phrases provided.

Applies to