class Google::Apis::DocumentaiV1beta3::GoogleCloudDocumentaiV1beta2DocumentLabel

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

automl_model[RW]

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“ Corresponds to the JSON property `automlModel` @return [String]

confidence[RW]

Confidence score between 0 and 1 for label assignment. Corresponds to the JSON property `confidence` @return [Float]

name[RW]

Name of the label. When the label is generated from AutoML Text Classification model, this field represents the name of the category. Corresponds to the JSON property `name` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/documentai_v1beta3/classes.rb, line 3146
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/documentai_v1beta3/classes.rb, line 3151
def update!(**args)
  @automl_model = args[:automl_model] if args.key?(:automl_model)
  @confidence = args[:confidence] if args.key?(:confidence)
  @name = args[:name] if args.key?(:name)
end