TextCategoriesAnalysisOutput interface

Text analysis result.

Properties

category

The text analysis category.

Possible values: Hate, SelfHarm, Sexual, Violence

severity

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.

Property Details

category

The text analysis category.

Possible values: Hate, SelfHarm, Sexual, Violence

category: string

Property Value

string

severity

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.

severity?: number

Property Value

number