Entity class

Provides information about an extracted medical entity.

Constructors

Entity.new({List<Attribute>? attributes, int? beginOffset, EntityType? category, int? endOffset, int? id, double? score, String? text, List<Trait>? traits, EntitySubType? type})
Entity.fromJson(Map<String, dynamic> json)
factory

Properties

attributes List<Attribute>?
The extracted attributes that relate to this entity.
final
beginOffset int?
The 0-based character offset in the input text that shows where the entity begins. The offset returns the UTF-8 code point in the string.
final
category EntityType?
The category of the entity.
final
endOffset int?
The 0-based character offset in the input text that shows where the entity 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 the entity. This is a monotonically increasing id unique within this response rather than a global unique identifier.
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 in the accuracy of the detection.
final
text String?
The segment of input text extracted as this entity.
final
traits List<Trait>?
Contextual information for the entity.
final
type EntitySubType?
Describes the specific type of entity with category of entities.
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