Class: Google::Apis::HealthcareV1beta1::EntityMentionRelationship
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::EntityMentionRelationship
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/healthcare_v1beta1/classes.rb,
lib/google/apis/healthcare_v1beta1/representations.rb,
lib/google/apis/healthcare_v1beta1/representations.rb
Overview
Defines directed relationship from one entity mention to another.
Instance Attribute Summary collapse
-
#confidence ⇒ Float
The model's confidence in this annotation.
-
#object_id_prop ⇒ String
object_id is the id of the object entity mention.
-
#subject_id ⇒ String
subject_id is the id of the subject entity mention.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityMentionRelationship
constructor
A new instance of EntityMentionRelationship.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EntityMentionRelationship
Returns a new instance of EntityMentionRelationship.
2451 2452 2453 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2451 def initialize(**args) update!(**args) end |
Instance Attribute Details
#confidence ⇒ Float
The model's confidence in this annotation. A number between 0 and 1.
Corresponds to the JSON property confidence
2439 2440 2441 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2439 def confidence @confidence end |
#object_id_prop ⇒ String
object_id is the id of the object entity mention.
Corresponds to the JSON property objectId
2444 2445 2446 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2444 def object_id_prop @object_id_prop end |
#subject_id ⇒ String
subject_id is the id of the subject entity mention.
Corresponds to the JSON property subjectId
2449 2450 2451 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2449 def subject_id @subject_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2456 2457 2458 2459 2460 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2456 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 |