Skip to content

Commit

Permalink
add get_adapter in docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
leokim-l committed Jun 20, 2024
1 parent 76aa814 commit 90f73cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/malco/post_process/mondo_score_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def omim_mappings(term: str, adapter) -> List[str]:
Example:
>>> omim_mappings("MONDO:0007566", mondo_adapter())
>>> omim_mappings("MONDO:0007566", get_adapter("sqlite:obo:mondo"))
['OMIM:132800']
Args:
Expand All @@ -41,13 +41,13 @@ def score_grounded_result(prediction: str, ground_truth: str, mondo) -> float:
Exact match:
>>> score_grounded_result("OMIM:132800", "OMIM:132800", mondo_adapter())
>>> score_grounded_result("OMIM:132800", "OMIM:132800", get_adapter("sqlite:obo:mondo"))
1.0
The predicted Mondo is equivalent to the ground truth OMIM
(via skos:exactMatches in Mondo):
>>> score_grounded_result("MONDO:0007566", "OMIM:132800", mondo_adapter())
>>> score_grounded_result("MONDO:0007566", "OMIM:132800", get_adapter("sqlite:obo:mondo"))
1.0
The predicted Mondo is a disease entity that groups multiple
Expand Down

0 comments on commit 90f73cd

Please sign in to comment.