Share via


PatternMatchingEntity.CreateListEntity Method

Definition

Overloads

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.

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.

public static Microsoft.CognitiveServices.Speech.Intent.PatternMatchingEntity CreateListEntity (string entityId, Microsoft.CognitiveServices.Speech.Intent.EntityMatchMode mode, System.Collections.Generic.IEnumerable<string> phrases);
static member CreateListEntity : string * Microsoft.CognitiveServices.Speech.Intent.EntityMatchMode * seq<string> -> Microsoft.CognitiveServices.Speech.Intent.PatternMatchingEntity
Public Shared Function CreateListEntity (entityId As String, mode As EntityMatchMode, phrases As IEnumerable(Of String)) As PatternMatchingEntity

Parameters

entityId
String

A string that represents a unique Id for this entity.

mode
EntityMatchMode

The EntityMatchMode for the List entity. Strict means the captured entity must appear in the phrases list.

phrases
IEnumerable<String>

A list of phrases used to match the list entity.

Returns

The Pattern Matching Entity being created.

Applies to

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.

public static Microsoft.CognitiveServices.Speech.Intent.PatternMatchingEntity CreateListEntity (string entityId, Microsoft.CognitiveServices.Speech.Intent.EntityMatchMode mode, params string[] phrases);
static member CreateListEntity : string * Microsoft.CognitiveServices.Speech.Intent.EntityMatchMode * string[] -> Microsoft.CognitiveServices.Speech.Intent.PatternMatchingEntity
Public Shared Function CreateListEntity (entityId As String, mode As EntityMatchMode, ParamArray phrases As String()) As PatternMatchingEntity

Parameters

entityId
String

A string that represents a unique Id for this entity.

mode
EntityMatchMode

The EntityMatchMode for the List entity. Strict means the captured entity must appear in the phrases list.

phrases
String[]

A list of phrases used to match the list entity.

Returns

The Pattern Matching Entity being created.

Applies to