Class: Google::Apis::HealthcareV1beta1::AnalyzeEntitiesResponse

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

Includes recognized entity mentions and relationships between them.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyzeEntitiesResponse

Returns a new instance of AnalyzeEntitiesResponse.



103
104
105
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 103

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

Instance Attribute Details

#entitiesArray<Google::Apis::HealthcareV1beta1::Entity>

The union of all the candidate entities that the entity_mentions in this response could link to. These are UMLS concepts or normalized mention content. Corresponds to the JSON property entities



89
90
91
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 89

def entities
  @entities
end

#entity_mentionsArray<Google::Apis::HealthcareV1beta1::EntityMention>

entity_mentions contains all the annotated medical entities that were were mentioned in the provided document. Corresponds to the JSON property entityMentions



95
96
97
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 95

def entity_mentions
  @entity_mentions
end

#relationshipsArray<Google::Apis::HealthcareV1beta1::EntityMentionRelationship>

relationships contains all the binary relationships that were identified between entity mentions within the provided document. Corresponds to the JSON property relationships



101
102
103
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 101

def relationships
  @relationships
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



108
109
110
111
112
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 108

def update!(**args)
  @entities = args[:entities] if args.key?(:entities)
  @entity_mentions = args[:entity_mentions] if args.key?(:entity_mentions)
  @relationships = args[:relationships] if args.key?(:relationships)
end