Entity class
A single named entity detected in the extracted text.
Constructors
- Entity({required EntityCategory category, required String text, required PlatformInt64 start, required PlatformInt64 end, double? confidence})
-
const
Properties
- category → EntityCategory
-
Canonical category the entity belongs to (PERSON, ORG, LOCATION, etc.).
final
- confidence → double?
-
Backend-reported confidence in
[0.0, 1.0].Nonewhen the backend does not expose confidence scores.final - end → int
-
Byte-offset span in
ExtractedDocument::contentwhere the mention ends (exclusive).final - hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → int
-
Byte-offset span in
ExtractedDocument::contentwhere the mention starts.final - text → String
-
Raw mention text exactly as it appeared in the source.
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.
override