RelationEntity

class oci.ai_language.models.RelationEntity(**kwargs)

Bases: object

The relation entities details for health ner.

Methods:

__init__(**kwargs)

Initializes a new RelationEntity object with values from keyword arguments.

Attributes:

id

[Required] Gets the id of this RelationEntity.

object_id

[Required] Gets the object_id of this RelationEntity.

score

[Required] Gets the score of this RelationEntity.

subject_id

[Required] Gets the subject_id of this RelationEntity.

type

[Required] Gets the type of this RelationEntity.

__init__(**kwargs)

Initializes a new RelationEntity object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • id (str) – The value to assign to the id property of this RelationEntity.

  • subject_id (str) – The value to assign to the subject_id property of this RelationEntity.

  • object_id (str) – The value to assign to the object_id property of this RelationEntity.

  • type (str) – The value to assign to the type property of this RelationEntity.

  • score (float) – The value to assign to the score property of this RelationEntity.

property id

[Required] Gets the id of this RelationEntity. id of the relation

Returns

The id of this RelationEntity.

Return type

str

property object_id

[Required] Gets the object_id of this RelationEntity. Object entity of the relation. eg, MEDICINE_DOSAGE, MEDICINE_DURATION, MEASUREMENT

Returns

The object_id of this RelationEntity.

Return type

str

property score

[Required] Gets the score of this RelationEntity. Score or confidence for detected entity.

Returns

The score of this RelationEntity.

Return type

float

property subject_id

[Required] Gets the subject_id of this RelationEntity. Subject entity of the relation. eg,MEDICINE_NAME, EXAMINATION

Returns

The subject_id of this RelationEntity.

Return type

str

property type

[Required] Gets the type of this RelationEntity. Type of relation between subject entity and object entity. eg,EXAMINATION_MEASUREMENT, FREQUENCY, DOSAGE

Returns

The type of this RelationEntity.

Return type

str