Class: Google::Apis::HealthcareV1beta1::EntityMention
- Inherits:
-
Object
- Object
- Google::Apis::HealthcareV1beta1::EntityMention
- 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 more...
Overview
An entity mention in the document.
Instance Attribute Summary collapse
-
#additional_info ⇒ Array<Google::Apis::HealthcareV1beta1::Feature>
Additional information about the entity mention.
-
#certainty_assessment ⇒ Google::Apis::HealthcareV1beta1::Feature
A feature of an entity mention.
-
#confidence ⇒ Float
The model's confidence in this entity mention annotation.
-
#linked_entities ⇒ Array<Google::Apis::HealthcareV1beta1::LinkedEntity>
linked_entities are candidate ontological concepts that this entity mention may refer to.
-
#mention_id ⇒ String
mention_id uniquely identifies each entity mention in a single response.
-
#subject ⇒ Google::Apis::HealthcareV1beta1::Feature
A feature of an entity mention.
-
#temporal_assessment ⇒ Google::Apis::HealthcareV1beta1::Feature
A feature of an entity mention.
-
#text ⇒ Google::Apis::HealthcareV1beta1::TextSpan
A span of text in the provided document.
-
#type ⇒ String
The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE, ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT, BM_VALUE, BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, DOESNOT_FOLLOWUP, FAMILY, FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, LAB_UNIT, LAB_VALUE, MEDICAL_DEVICE, MEDICINE, MED_DOSE, MED_DURATION, MED_FORM, MED_FREQUENCY, MED_ROUTE, MED_STATUS, MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT, OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, PROC_METHOD, REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, UNCLEAR_FOLLOWUP.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EntityMention
constructor
A new instance of EntityMention.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ EntityMention
Returns a new instance of EntityMention.
2414 2415 2416 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2414 def initialize(**args) update!(**args) end |
Instance Attribute Details
#additional_info ⇒ Array<Google::Apis::HealthcareV1beta1::Feature>
Additional information about the entity mention. For example, for an entity
mention of type DATE
this can be its more specific date types from the
following list: ADMISSION_DATE
, CONSULTATION_DATE
, DISCHARGE_DATE
,
SERVICE_DATE
, VISIT_DATE
, DIAGNOSIS_DATE
, MED_STARTED_DATE
,
MED_ENDED_DATE
, NOTE_DATE
, PROCEDURE_DATE
, RADIATION_STARTED_DATE
,
RADIATION_ENDED_DATE
, STAGE_DATE
Corresponds to the JSON property additionalInfo
2363 2364 2365 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2363 def additional_info @additional_info end |
#certainty_assessment ⇒ Google::Apis::HealthcareV1beta1::Feature
A feature of an entity mention.
Corresponds to the JSON property certaintyAssessment
2368 2369 2370 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2368 def certainty_assessment @certainty_assessment end |
#confidence ⇒ Float
The model's confidence in this entity mention annotation. A number between 0
and 1.
Corresponds to the JSON property confidence
2374 2375 2376 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2374 def confidence @confidence end |
#linked_entities ⇒ Array<Google::Apis::HealthcareV1beta1::LinkedEntity>
linked_entities are candidate ontological concepts that this entity mention
may refer to. They are sorted by decreasing confidence.
Corresponds to the JSON property linkedEntities
2380 2381 2382 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2380 def linked_entities @linked_entities end |
#mention_id ⇒ String
mention_id uniquely identifies each entity mention in a single response.
Corresponds to the JSON property mentionId
2385 2386 2387 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2385 def mention_id @mention_id end |
#subject ⇒ Google::Apis::HealthcareV1beta1::Feature
A feature of an entity mention.
Corresponds to the JSON property subject
2390 2391 2392 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2390 def subject @subject end |
#temporal_assessment ⇒ Google::Apis::HealthcareV1beta1::Feature
A feature of an entity mention.
Corresponds to the JSON property temporalAssessment
2395 2396 2397 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2395 def temporal_assessment @temporal_assessment end |
#text ⇒ Google::Apis::HealthcareV1beta1::TextSpan
A span of text in the provided document.
Corresponds to the JSON property text
2400 2401 2402 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2400 def text @text end |
#type ⇒ String
The semantic type of the entity: UNKNOWN_ENTITY_TYPE, ALONE,
ANATOMICAL_STRUCTURE, ASSISTED_LIVING, BF_RESULT, BM_RESULT, BM_UNIT, BM_VALUE,
BODY_FUNCTION, BODY_MEASUREMENT, COMPLIANT, DOESNOT_FOLLOWUP, FAMILY,
FOLLOWSUP, LABORATORY_DATA, LAB_RESULT, LAB_UNIT, LAB_VALUE, MEDICAL_DEVICE,
MEDICINE, MED_DOSE, MED_DURATION, MED_FORM, MED_FREQUENCY, MED_ROUTE,
MED_STATUS, MED_STRENGTH, MED_TOTALDOSE, MED_UNIT, NON_COMPLIANT,
OTHER_LIVINGSTATUS, PROBLEM, PROCEDURE, PROCEDURE_RESULT, PROC_METHOD,
REASON_FOR_NONCOMPLIANCE, SEVERITY, SUBSTANCE_ABUSE, UNCLEAR_FOLLOWUP.
Corresponds to the JSON property type
2412 2413 2414 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2412 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 |
# File 'lib/google/apis/healthcare_v1beta1/classes.rb', line 2419 def update!(**args) @additional_info = args[:additional_info] if args.key?(:additional_info) @certainty_assessment = args[:certainty_assessment] if args.key?(:certainty_assessment) @confidence = args[:confidence] if args.key?(:confidence) @linked_entities = args[:linked_entities] if args.key?(:linked_entities) @mention_id = args[:mention_id] if args.key?(:mention_id) @subject = args[:subject] if args.key?(:subject) @temporal_assessment = args[:temporal_assessment] if args.key?(:temporal_assessment) @text = args[:text] if args.key?(:text) @type = args[:type] if args.key?(:type) end |