-
Notifications
You must be signed in to change notification settings - Fork 229
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
EntityLinker knowledge base returns CUIs not MeSH IDs when 'mesh' is selected #355
Comments
ahh, the config parameter is called |
Thanks a lot! |
I am getting the same error eve using linker_name in the configurator: config = { nlp = spacy.load("en_core_sci_md") nlp.add_pipe("scispacy_linker", config=config) linker = nlp.get_pipe("scispacy_linker") doc = nlp("Pre-diabetes Obesity Type-2 Diabetes Mellitus Obesity Overweight") for e in doc.ents: and I get: I also used other Scispacy model: nlp = spacy.load("en_ner_bionlp13cg_md") in the same script, I don't know if it matters |
Hi, it looks like the original mesh linker was created with a separate kb, rather than just a subset of UMLS. The process for creating the linker may have been lost. When I recreated the linkers for the latest UMLS release, I just used a subset of UMLS to produce the mesh linker. I'll have to look into this and decide whether to just stick to the current UMLS ids, or try to recreate the old version of the linker. Sorry about that. For now you will need to map between UMLS id and mesh id yourself. |
I see, maybe I will try using the previous scispacy version (0.5.1) that should work. Thank you very much for answering my question! |
Also facing this problem, but I am able to map to MeSH from UMLS CUIs using the MRCONSO.RRF file |
I'm using scispaCy entity linker using this snippet:
Then when I use it:
But, in the README of scispaCy, I see that for MeSH, it should not return UMLS CUIs, but the specific MeSH IDs (for example, D003435). How to fix this? Did I understand something badly?
The text was updated successfully, but these errors were encountered: