Skip to content

Commit

Permalink
multiword now only fires if the detected whitespace occurs in the mid…
Browse files Browse the repository at this point in the history
…dle part of a string

Co-authored-by: Szymon Palucha <szymon.palucha@astrazeneca.com>
  • Loading branch information
RichJackson and Szymon Palucha committed Sep 18, 2024
1 parent 205b46e commit 99c6694
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kazu/ontology_preprocessing/autocuration.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def multiword(
:param resource:
:return:
"""
if any(" " in syn.text for syn in resource.original_synonyms):
if any(" " in syn.text.strip() for syn in resource.original_synonyms):
return dataclasses.replace(
resource,
original_synonyms=frozenset(
Expand Down

0 comments on commit 99c6694

Please sign in to comment.