Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/datalabeling_v1beta1/classes.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb,
generated/google/apis/datalabeling_v1beta1/representations.rb

Overview

Text entity extraction annotation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation

Returns a new instance of GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation.



4318
4319
4320
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4318

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#annotation_specGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1AnnotationSpec

Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as dog or cat must reference an AnnotationSpec for dog and an AnnotationSpec for cat. Corresponds to the JSON property annotationSpec



4311
4312
4313
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4311

def annotation_spec
  @annotation_spec
end

#sequential_segmentGoogle::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1SequentialSegment

Start and end position in a sequence (e.g. text segment). Corresponds to the JSON property sequentialSegment



4316
4317
4318
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4316

def sequential_segment
  @sequential_segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4323
4324
4325
4326
# File 'generated/google/apis/datalabeling_v1beta1/classes.rb', line 4323

def update!(**args)
  @annotation_spec = args[:annotation_spec] if args.key?(:annotation_spec)
  @sequential_segment = args[:sequential_segment] if args.key?(:sequential_segment)
end