Share via


ContentSafetyModelFactory.TextCategoriesAnalysis Method

Definition

Initializes a new instance of TextCategoriesAnalysis.

public static Azure.AI.ContentSafety.TextCategoriesAnalysis TextCategoriesAnalysis (Azure.AI.ContentSafety.TextCategory category = default, int? severity = default);
static member TextCategoriesAnalysis : Azure.AI.ContentSafety.TextCategory * Nullable<int> -> Azure.AI.ContentSafety.TextCategoriesAnalysis
Public Shared Function TextCategoriesAnalysis (Optional category As TextCategory = Nothing, Optional severity As Nullable(Of Integer) = Nothing) As TextCategoriesAnalysis

Parameters

category
TextCategory

The text analysis category.

severity
Nullable<Int32>

The value increases with the severity of the input content. The value of this field is determined by the output type specified in the request. The output type could be ‘FourSeverityLevels’ or ‘EightSeverity Levels’, and the output value can be 0, 2, 4, 6 or 0, 1, 2, 3, 4, 5, 6, or 7.

Returns

A new TextCategoriesAnalysis instance for mocking.

Applies to