你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

TextAnalysisModelFactory.NamedEntity Method

Definition

Initializes a new instance of NamedEntity.

public static Azure.AI.Language.Text.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.Text.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