kindred.CandidateRelation

class kindred.CandidateRelation(entities=None, knownTypesAndArgNames=None, sentence=None)[source]

Describes a candidate relation between entities (i.e. one that could exist but has not yet been predicted). Contains information about known relation types and arg names associated with this candidate (from training data) and also a link to the sentence containing this candidate.

Variables:
  • entities – List of entities in relation
  • knownTypesAndArgNames – List of tuples with known relation types and argument names associated with this candidate relation
  • sentence – Parsed sentence containing the candidate relation

Methods

__init__(entities=None, knownTypesAndArgNames=None, sentence=None)[source]

Constructor for Candidate Relation class

Parameters:
  • entities (list of kindred.Entity) – List of entities in relation
  • knownTypesAndArgNames (list of tuples (str, list of str)) – List of tuples with known relation types and argument names associated with this candidate relation
  • sentence (kindred.Sentence) – Parsed sentence containing the candidate relation