List of NamedEntityRecognitionRelationship objects.
NamedEntityRecognitionAnnotation
Field
Type
Description
id
string
Unique identifier.
start
number
Start index of the text span.
end
number
End index of the text span.
text
string
Text of the text span.
label
string
References the name field of a label in the task params.
attributes (optional)
object
The keys of the object reference keys of the attributes object for the corresponding label in the task params.
NamedEntityRecognitionRelationship
In tasks with undirected relationships, the source_ref and target_ref fields are interchangeable. In tasks with links that do not have relationship names, the name field will be left blank.
Field
Type
Description
id
string
Unique identifier.
source_ref
string
References the id of the annotation that is the source of the directed relationship.
target_ref
string
References the id of the annotation that is the target of the directed relationship.
name (optional)
string
References the name of relationship definitions in the task params.