Skip to content

Commit

Permalink
fix: correct BioPortal annotator parameter format
Browse files Browse the repository at this point in the history
Adjust BioPortal annotator parameters to use lowercase boolean
strings for compatibility with the service's URL encoding.
  • Loading branch information
clnsmth authored Aug 29, 2024
1 parent c384477 commit b95961f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/spinneret/annotator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ def get_bioportal_annotation(
api_key: str,
ontologies: str,
semantic_types: str = "",
expand_semantic_types_hierarchy: bool = False,
expand_class_hierarchy: bool = False,
expand_semantic_types_hierarchy: str = "false",
expand_class_hierarchy: str = "false",
class_hierarchy_max_level: int = 0,
expand_mappings: bool = False,
expand_mappings: str = "false",
stop_words: str = "",
minimum_match_length: int = 3,
exclude_numbers: bool = False,
whole_word_only: bool = True,
exclude_synonyms: bool = False,
longest_only: bool = False,
exclude_numbers: str = "false",
whole_word_only: str = "true",
exclude_synonyms: str = "false",
longest_only: str = "false",
) -> Union[list, None]:
"""Get an annotation from the BioPortal API
Expand Down

0 comments on commit b95961f

Please sign in to comment.