다음을 통해 공유


ConversationsModelFactory.NamedEntity Method

Definition

Initializes a new instance of NamedEntity.

public static Azure.AI.Language.Conversations.Models.NamedEntity NamedEntity (string text = default, string category = default, string subcategory = default, int offset = 0, int length = 0, double confidenceScore = 0);
static member NamedEntity : string * string * string * int * int * double -> Azure.AI.Language.Conversations.Models.NamedEntity
Public Shared Function NamedEntity (Optional text As String = Nothing, Optional category As String = Nothing, Optional subcategory As String = Nothing, Optional offset As Integer = 0, Optional length As Integer = 0, Optional confidenceScore As Double = 0) As NamedEntity

Parameters

text
String

Entity text as appears in the request.

category
String

Entity type.

subcategory
String

(Optional) Entity sub type.

offset
Int32

Start position for the entity text. Use of different 'stringIndexType' values can affect the offset returned.

length
Int32

Length for the entity text. Use of different 'stringIndexType' values can affect the length returned.

confidenceScore
Double

Confidence score between 0 and 1 of the extracted entity.

Returns

A new NamedEntity instance for mocking.

Applies to