Skip to content

Commit 6b7aed9

Browse files
committed
Model relations in _Relatable.incoming_relation()
Senses and Synsets now have an `incoming_relation()` method. The value of this method returns a SenseRelation, SenseSynsetRelation, or SynsetRelation object if the Sense/Synset is the result of a relation traversal. Otherwise the method returns `None`. The new relation objects specify the relation name, the source and target IDs of the relation, and the lexicon where the relation originated. Fixes #216 Fixes #167
1 parent 8142640 commit 6b7aed9

File tree

3 files changed

+228
-88
lines changed

3 files changed

+228
-88
lines changed

0 commit comments

Comments
 (0)