Class TextCategoriesAnalysis

java.lang.Object
com.azure.ai.contentsafety.models.TextCategoriesAnalysis

public final class TextCategoriesAnalysis extends Object
Text analysis result.
  • Method Details

    • getCategory

      public TextCategory getCategory()
      Get the category property: The text analysis category.
      Returns:
      the category value.
    • getSeverity

      public Integer getSeverity()
      Get the severity property: 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:
      the severity value.