Attribute class
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.
Constructors
-
Attribute({int? beginOffset, EntityType? category, int? endOffset, int? id, double? relationshipScore, RelationshipType? relationshipType, double? score, String? text, List<
Trait> ? traits, EntitySubType? type}) -
Attribute.fromJson(Map<
String, dynamic> json) -
factory
Properties
- beginOffset → int?
-
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.
final
- category → EntityType?
-
The category of attribute.
final
- endOffset → int?
-
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.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int?
-
The numeric identifier for this attribute. This is a monotonically
increasing id unique within this response rather than a global unique
identifier.
final
- relationshipScore → double?
-
The level of confidence that Amazon Comprehend Medical has that this
attribute is correctly related to this entity.
final
- relationshipType → RelationshipType?
-
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 theDate_Expression
.final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- score → double?
-
The level of confidence that Amazon Comprehend Medical has that the segment
of text is correctly recognized as an attribute.
final
- text → String?
-
The segment of input text extracted as this attribute.
final
-
traits
→ List<
Trait> ? -
Contextual information for this attribute.
final
- type → EntitySubType?
-
The type of attribute.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited