Constructor for the Paragraph class.
The text of the paragraph.
Optional
paragraphEntities: REF_EntityJSONFormat[]An optional array of entities in the paragraph.
An array of entities in the paragraph.
The ID of the paragraph.
The text of the paragraph.
Converts the Paragraph instance to a JSON object.
The name of the annotator for the export.
The JSON representation of the Paragraph.
Generates the RDF representation of the paragraph.
position of the paragraph in the document
unique identifier for the document
array of paragraph IDs
instance of LabelManager to include labels in the RDF export
RDF representation of the paragraph
Static
fromCreates a Paragraph instance from a JSON object.
The JSON object to convert.
The Paragraph instance created from the JSON object.
Paragraph
Description
This class represents a paragraph in the annotations, containing text and entities.