Class: Google::Apis::HealthcareV1::EntityMentionRelationship

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

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.

[View source]

1914
1915
1916
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1914

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)

1902
1903
1904
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1902

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)

1907
1908
1909
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1907

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)

1912
1913
1914
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1912

def subject_id
  @subject_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object

[View source]

1919
1920
1921
1922
1923
# File 'lib/google/apis/healthcare_v1/classes.rb', line 1919

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