View Source GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta2DocumentLabel (google_api_document_ai v0.39.0)

Label attaches schema information and/or other metadata to segments within a Document. Multiple Labels on a single field can denote either different labels, different instances of the same label created at different times, or some combination of both.

Attributes

  • automlModel (type: String.t, default: nil) - Label is generated AutoML model. This field stores the full resource name of the AutoML model. Format: projects/{project-id}/locations/{location-id}/models/{model-id}
  • confidence (type: number(), default: nil) - Confidence score between 0 and 1 for label assignment.
  • name (type: String.t, default: nil) - Name of the label. When the label is generated from AutoML Text Classification model, this field represents the name of the category.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() ::
  %GoogleApi.DocumentAI.V1beta3.Model.GoogleCloudDocumentaiV1beta2DocumentLabel{
    automlModel: String.t() | nil,
    confidence: number() | nil,
    name: String.t() | nil
  }

Functions

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

Unwrap a decoded JSON object into its complex fields.