Spacy 3.0 - specify my own candidate generator to use custom UMLS path #7458
phil-oxenberg
started this conversation in
Language Support
Replies: 1 comment 1 reply
-
Hi! This seems very scispacy-specific, so perhaps it would make more sense to ask advice there? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm in the process of updating my python project from using Spacy 2 to use Spacy 3. My project uses my own versions of Scispacy candidate_generation.py and linking_utils.py in order to use a custom version of concept_aliases.json and other UMLS data files. How do I accomplish this in Spacy 3?
In V2, I simply made copies of candidate_generation.py and linking_utils.py which referenced local copies of the KB data files and instantiated my version of candidate_generation.py and passed the object to the EntitlyLinker constructor like so:
My candidate_generation.py, in turn, references my linking_utils.py.
Beta Was this translation helpful? Give feedback.
All reactions