Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ACB-69 #63

Open
mcgeestephen opened this issue May 24, 2023 · 0 comments
Open

ACB-69 #63

mcgeestephen opened this issue May 24, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@mcgeestephen
Copy link
Contributor

The following should return HP:0002107

ext = Extractor(removed_negated=True)
ext.hpo("The trachea is midline and there is no pneumothorax").negated_hpids

[ ]

The following does return HP:0002107 but only because there are two spaces between "no" and "pneumothorax"

ext.hpo("The trachea is midline and there is no  pneumothorax").negated_hpids

['HP:0002107']

The following should return HP:0002108 but instead returns the term for "pneumothorax"

ext.hpo("The trachea is midline and there is no spontaneous pneumothorax").negated_hpids

['HP:0002107']
@mcgeestephen mcgeestephen added the bug Something isn't working label May 24, 2023
@mcgeestephen mcgeestephen changed the title Weird negation behavior ACB-69 May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant