Constructor for the Entity class.
The start index of the entity in the text.
The end index of the entity in the text.
An optional array of history entries for the entity.
An optional label class for the entity.
Indicates if the entity has been reviewed.
Optional
currentState: stringThe current state of the entity.
The current state of the entity, e.g., "active", "inactive".
The end index of the entity in the text.
An array to hold the history of label changes.
The label class of the entity.
The name of the label assigned to the entity.
The name of the last annotator.
Indicates if the entity has been reviewed.
The start index of the entity in the text.
A method to get the latest history entry.
Converts the Entity instance to a JSON object.
The name of the annotator for the export.
The JSON representation of the Entity.
Static
fromReturns a new instance of Entity from a JSON object.
The JSON object to convert.
The Entity instance created from the JSON object.
Entity
Description
This class represents an entity in the annotations, containing start and end indices, label, and history of changes.