GoogleApi.DocumentAI.V1beta2.Model.GoogleCloudDocumentaiV1beta2DocumentLabel (google_api_document_ai v0.21.0) View Source

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.

Link to this section Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Link to this section Types

Specs

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

Link to this section Functions

Specs

decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.