kindred.Relation

class kindred.Relation(relationType=None, entities=None, argNames=None, probability=None, sourceRelationID=None)[source]

Describes relationship between entities (including relation type and argument names if applicable).

Variables:
  • relationType – Type of relation
  • entities – List of entities in relation
  • argNames – Names of relation argument associated with each entity
  • probability – Optional probability for predicted relations
  • sourceRelationID – Relation ID used in source document

Methods

__init__(relationType=None, entities=None, argNames=None, probability=None, sourceRelationID=None)[source]

Constructor for Relation class

Parameters:
  • relationType (str) – Type of relation
  • entities (list of kindred.Entity) – List of entities in relation
  • argNames (list of str) – Names of relation argument associated with each entity
  • probability (float) – Optional probability for predicted relations
  • sourceRelationID (str) – Relation ID used in source document