class Aws::ComprehendMedical::Types::Attribute

An extracted segment of the text that is an attribute of an entity, or otherwise related to an entity, such as the dosage of a medication taken. It contains information about the attribute such as id, begin and end offset within the input text, and the segment of the input text.

@!attribute [rw] type

The type of attribute.
@return [String]

@!attribute [rw] score

The level of confidence that Amazon Comprehend Medical has that the
segment of text is correctly recognized as an attribute.
@return [Float]

@!attribute [rw] relationship_score

The level of confidence that Amazon Comprehend Medical has that this
attribute is correctly related to this entity.
@return [Float]

@!attribute [rw] relationship_type

The type of relationship between the entity and attribute. Type for
the relationship is `OVERLAP`, indicating that the entity occurred
at the same time as the `Date_Expression`.
@return [String]

@!attribute [rw] id

The numeric identifier for this attribute. This is a monotonically
increasing id unique within this response rather than a global
unique identifier.
@return [Integer]

@!attribute [rw] begin_offset

The 0-based character offset in the input text that shows where the
attribute begins. The offset returns the UTF-8 code point in the
string.
@return [Integer]

@!attribute [rw] end_offset

The 0-based character offset in the input text that shows where the
attribute ends. The offset returns the UTF-8 code point in the
string.
@return [Integer]

@!attribute [rw] text

The segment of input text extracted as this attribute.
@return [String]

@!attribute [rw] category

The category of attribute.
@return [String]

@!attribute [rw] traits

Contextual information for this attribute.
@return [Array<Types::Trait>]

@see docs.aws.amazon.com/goto/WebAPI/comprehendmedical-2018-10-30/Attribute AWS API Documentation

Constants

SENSITIVE