Class: Google::Apis::HealthcareV1beta1::EntityMention

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

An entity mention in the document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EntityMention

Returns a new instance of EntityMention.



1402
1403
1404
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1402

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

Instance Attribute Details

#certainty_assessmentGoogle::Apis::HealthcareV1beta1::Feature

A feature of an entity mention. Corresponds to the JSON property certaintyAssessment



1356
1357
1358
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1356

def certainty_assessment
  @certainty_assessment
end

#confidenceFloat

The model's confidence in this entity mention annotation. A number between 0 and 1. Corresponds to the JSON property confidence

Returns:

  • (Float)


1362
1363
1364
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1362

def confidence
  @confidence
end

#linked_entitiesArray<Google::Apis::HealthcareV1beta1::LinkedEntity>

linked_entities are candidate ontological concepts that this entity mention may refer to. They are sorted by decreasing confidence.it Corresponds to the JSON property linkedEntities



1368
1369
1370
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1368

def linked_entities
  @linked_entities
end

#mention_idString

mention_id uniquely identifies each entity mention in a single response. Corresponds to the JSON property mentionId

Returns:

  • (String)


1373
1374
1375
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1373

def mention_id
  @mention_id
end

#subjectGoogle::Apis::HealthcareV1beta1::Feature

A feature of an entity mention. Corresponds to the JSON property subject



1378
1379
1380
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1378

def subject
  @subject
end

#temporal_assessmentGoogle::Apis::HealthcareV1beta1::Feature

A feature of an entity mention. Corresponds to the JSON property temporalAssessment



1383
1384
1385
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1383

def temporal_assessment
  @temporal_assessment
end

#textGoogle::Apis::HealthcareV1beta1::TextSpan

A span of text in the provided document. Corresponds to the JSON property text



1388
1389
1390
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1388

def text
  @text
end

#typeString

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

Returns:

  • (String)


1400
1401
1402
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1400

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
# File 'generated/google/apis/healthcare_v1beta1/classes.rb', line 1407

def update!(**args)
  @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