Arguments of the relation (subject, possibly an object).
Any features of the relation e.g. modality: can.
Readonly
idID of the relation used to refer to it from other objects.
Name of the relation, e.g. eat
for eat a pizza or good
for a good pizza.
Sentiment of this relation. null if not requested.
Tecto-tokens of all the mentions of the relations (restricted to its head). Empty if not requested.
Human redable representation of the relation, e.g. eat-not(SUBJ:John, DOBJ:pizza)
.
One of Relation.TYPE_ATTR, Relation.TYPE_RELATION, Relation.TYPE_EXTERNAL.
Optional vectors for this relation.
Static
Readonly
FEAT_Feature storing info about modality.
Static
Readonly
FEAT_Key presence signifies it is a negated word, value = True.
Static
Readonly
TYPE_Attribute relation (e.g. good(pizza)
for good pizza, pizza is good).
Static
Readonly
TYPE_Relation where at least one argument is outside of the the document (e.g. between pizza
in the document and
food
item in the knowledgebase).
Static
Readonly
TYPE_Verbal relation (e.g. eat(pizza)
for eat a pizza.
Returns the relation object argument, if precisely one is present; otherwise returns null.
Returns the relation subject argument, if precisely one is present; otherwise returns null.
Static
ofRelation factory method, public constructor.
An object encapsulating a relation extracted from text. For example
buy(John, car)
.