Skip to content

Commit

Permalink
Model relations in _Relatable.incoming_relation()
Browse files Browse the repository at this point in the history
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
  • Loading branch information
goodmami committed Nov 21, 2024
1 parent 8142640 commit 6b7aed9
Show file tree
Hide file tree
Showing 3 changed files with 228 additions and 88 deletions.
Loading

0 comments on commit 6b7aed9

Please sign in to comment.