CategoriesResult

public struct CategoriesResult : Codable, Equatable

A categorization of the analyzed text.

  • The path to the category through the multi-level taxonomy hierarchy. For more information about the categories, see Categories hierarchy.

    Declaration

    Swift

    public var label: String?
  • Confidence score for the category classification. Higher values indicate greater confidence.

    Declaration

    Swift

    public var score: Double?
  • Information that helps to explain what contributed to the categories result.

    Declaration

    Swift

    public var explanation: CategoriesResultExplanation?