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

what controls the order of UMLS linked entities from scispacy if the scores are all 1 #344

Closed
charliejeynes opened this issue Mar 25, 2021 · 2 comments

Comments

@charliejeynes
Copy link

i'm using Scispacy (which is awesome!) but when I type 'tau' into the app found here https://scispacy.apps.allenai.org/ the UMLS entity gives me the canonical name of 'MAPT gene' which is what I want. But when I do the exact same thing in my python code based on the app code (see here https://gist.github.com/DeNeutoy/b20860b40b9fa9d33675893c56afde42) the first canonical name on the list is 'uridine triacetate' (the second is 'MAPT gene')

in the app code there is the call 'if show_only_top:break' so I assume somehow their app implementation orders the linked entities differently.

if someone can explain the difference in ordering and how to fix that would be great thanks!!

PS this is also posted on stackoverflow - before I thought to post here!

@MichalMalyska
Copy link
Contributor

I think the reason for this difference might be the same as in #342 - they are running a different version in the demo and if you use an older one you might get a different ordering / result

@charliejeynes
Copy link
Author

OK makes sense thanks a lot - for the moments, I've just written a workaround

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants