Class: Google::Apis::HealthcareV1beta1::EntityMentionRelationship

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

Overview

Defines directed relationship from one entity mention to another.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EntityMentionRelationship

Returns a new instance of EntityMentionRelationship.



1438
1439
1440
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1438

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

Instance Attribute Details

#confidenceFloat

The model's confidence in this annotation. A number between 0 and 1. Corresponds to the JSON property confidence

Returns:

  • (Float)


1426
1427
1428
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1426

def confidence
  @confidence
end

#object_id_propString

object_id is the id of the object entity mention. Corresponds to the JSON property objectId

Returns:

  • (String)


1431
1432
1433
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1431

def object_id_prop
  @object_id_prop
end

#subject_idString

subject_id is the id of the subject entity mention. Corresponds to the JSON property subjectId

Returns:

  • (String)


1436
1437
1438
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1436

def subject_id
  @subject_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1443
1444
1445
1446
1447
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1443

def update!(**args)
  @confidence = args[:confidence] if args.key?(:confidence)
  @object_id_prop = args[:object_id_prop] if args.key?(:object_id_prop)
  @subject_id = args[:subject_id] if args.key?(:subject_id)
end