concrete.linking package¶
-
class
concrete.linking.ttypes.
Link
(sourceId=None, linkTargetList=None)¶ Bases:
object
A structure that represents the origin of an entity linking annotation.Attributes:- sourceId: The “root” of this Link; points to a EntityMention UUID, Entity UUID, etc.- linkTargetList: A list of LinkTarget objects that this Link contains.-
read
(iprot)¶
-
validate
()¶
-
write
(oprot)¶
-
-
class
concrete.linking.ttypes.
LinkTarget
(confidence=None, targetId=None, dbId=None, dbName=None)¶ Bases:
object
A structure that represents the target of an entity linking annotation.Attributes:- confidence: Confidence of this LinkTarget object.- targetId: A UUID that represents the target of this LinkTarget. ThisUUID should exist in the Entity/Situation(Mention)Set that theLinking object is contained in.- dbId: A database ID that represents the target of this linking.This should be used if the target of the linking is not associatedwith an Entity|Situation(Mention)Set in Concrete, and therefore cannot be linked bya UUID internal to concrete.If present, other optional field ‘dbName’ should also be populated.- dbName: The name of the database that represents the target of this linking.Together with the ‘dbId’, this can form a pointer to a targetthat is not represented inside concrete.Should be populated alongside ‘dbId’.-
read
(iprot)¶
-
validate
()¶
-
write
(oprot)¶
-
-
class
concrete.linking.ttypes.
Linking
(metadata=None, linkList=None)¶ Bases:
object
A structure that represents entity linking annotations.Attributes:- metadata: Metadata related to this Linking object.- linkList: A list of Link objects that this Linking object contains.-
read
(iprot)¶
-
validate
()¶
-
write
(oprot)¶
-