Class: Google::Apis::HealthcareV1::AnalyzeEntitiesResponse
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1::AnalyzeEntitiesResponse
- 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
Overview
Includes recognized entity mentions and relationships between them.
Instance Attribute Summary collapse
-
#entities ⇒ Array<Google::Apis::HealthcareV1::Entity>
The union of all the candidate entities that the entity_mentions in this response could link to.
-
#entity_mentions ⇒ Array<Google::Apis::HealthcareV1::EntityMention>
entity_mentions contains all the annotated medical entities that were mentioned in the provided document.
-
#relationships ⇒ Array<Google::Apis::HealthcareV1::EntityMentionRelationship>
relationships contains all the binary relationships that were identified between entity mentions within the provided document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ AnalyzeEntitiesResponse
constructor
A new instance of AnalyzeEntitiesResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ AnalyzeEntitiesResponse
Returns a new instance of AnalyzeEntitiesResponse.
112 113 114 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 112 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entities ⇒ Array<Google::Apis::HealthcareV1::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
98 99 100 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 98 def entities @entities end |
#entity_mentions ⇒ Array<Google::Apis::HealthcareV1::EntityMention>
entity_mentions contains all the annotated medical entities that were
mentioned in the provided document.
Corresponds to the JSON property entityMentions
104 105 106 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 104 def entity_mentions @entity_mentions end |
#relationships ⇒ Array<Google::Apis::HealthcareV1::EntityMentionRelationship>
relationships contains all the binary relationships that were identified
between entity mentions within the provided document.
Corresponds to the JSON property relationships
110 111 112 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 110 def relationships @relationships end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
117 118 119 120 121 |
# File 'lib/google/apis/healthcare_v1/classes.rb', line 117 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 |