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

TextAnalyticsModelFactory.CategorizedEntity Method

Definition

Initializes a new instance of CategorizedEntity for mocking purposes.

public static Azure.AI.TextAnalytics.CategorizedEntity CategorizedEntity(string text, string category, string subCategory, double score, int offset, int length);
static member CategorizedEntity : string * string * string * double * int * int -> Azure.AI.TextAnalytics.CategorizedEntity
Public Shared Function CategorizedEntity (text As String, category As String, subCategory As String, score As Double, offset As Integer, length As Integer) As CategorizedEntity

Parameters

text
String

Sets the Text property.

category
String

Sets the Category property.

subCategory
String

Sets the SubCategory property.

score
Double

Sets the ConfidenceScore property.

offset
Int32

Sets the Offset property.

length
Int32

Sets the Length property.

Returns

A new instance of CategorizedEntity for mocking purposes.

Applies to