-
Notifications
You must be signed in to change notification settings - Fork 105
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
How to use SNOMED trained model #410
Comments
Thank you for letting us know of this issue! We've not encountered this before. This has something to do with how the weighted average function is pickled within the model pack (or more specifically, the config). The easiest workaround would be: cat.config.linking.filters.weighted_average_function = lambda step: max(0.1, 1 - (step ** 2 * 0.0004)) This will ensure there's a valid method there to be called. PS: |
Works gracefully after downgrading to Python 3.10. Thanks! |
I'm glad downgrading to Python 3.10 worked for you (I expected it would). With that said, I've prepared a PR (#411) that should fix this on the fly. Though I'm still not fully sure what the underlying issue is. I've managed to identify that there is some issue with dumping |
Closing as #411 was merged in. Internal discussion suggests we're unlikely to come to a more robust solution with a reasonable time investment. |
Hi, thanks for your wonderful work. I am trying to use your trained model for entity linking on SNOMED-CT ontology.
However, I got some errors when I tried to run
get_entities
from a simple text.This is my code:
And this is the error message:
It ran fine when I used the same text in the tutorial. ("My simple document with Huntington Chorea")
I am currently using MedCat 1.10.2.
What could possibly be the problem?
The text was updated successfully, but these errors were encountered: