EntityAnnotation class

An object that contains the possible entities associated with a piece of the text.

Constructors

EntityAnnotation({required int start, required int end, required String text, required List<Entity> entities})
Constructor to create an instance of EntityAnnotation.
EntityAnnotation.fromJson(Map json)
Returns an instance of EntityAnnotation from a given json.
factory

Properties

end int
The end of the annotation in the given text.
final
entities List<Entity>
A list of possible entities in the given span of text.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
start int
The start of the annotation in the given text.
final
text String
The text segment within the original text that this annotation refers to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited