KRR-Oxford / DeepOnto

A package for ontology engineering with deep learning and language models.
https://krr-oxford.github.io/DeepOnto/
Apache License 2.0
187 stars 12 forks source link

BERTMap Stuck at Mapping Extension #8

Closed Lawhy closed 1 year ago

Lawhy commented 1 year ago

Describe the bug The BERTMap model got stuck at the mapping extension phase.

To Reproduce Steps to reproduce the behavior: Run BERTMap on SNOMED-FMA (Body) task.

Lawhy commented 1 year ago

Using reasoners to get direct parents or children could be infeasible for some ontologies. The issue is fixed by replacing get_inferred_super_entities(_, direct=True) (resp. sub) to get_asserted_parents(_, _) (resp. children).