View Source GoogleApi.Language.V2.Model.ClassificationCategory (google_api_language v0.16.0)

Represents a category returned from the text classifier.

Attributes

  • confidence (type: number(), default: nil) - The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
  • name (type: String.t, default: nil) - The name of the category representing the document.
  • severity (type: number(), default: nil) - Optional. The classifier's severity of the category. This is only present when the ModerateTextRequest.ModelVersion is set to MODEL_VERSION_2, and the corresponding category has a severity score.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Language.V2.Model.ClassificationCategory{
  confidence: number() | nil,
  name: String.t() | nil,
  severity: number() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.