ContentSafetyModelFactory.TextCategoriesAnalysis Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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
Azure SDK for .NET