-
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
Entity-linking for other ontologies #331
Comments
@DeNeutoy could you point to how to add a new entity linker? |
Hi @BlakeList, Creating your own entity linker is quite straightforward - there is one fiddly bit in how the linkers are registered with scispacy at the moment which is less than ideal, but you should be able to follow the instructions in this issue: You can use this script: to create the files for the linker. The only input you need is a json/jsonl file with objects which look like this class: scispacy/scispacy/linking_utils.py Line 12 in 4ade4ec
Once you've generated the linker and tested it out, we can see about getting it integrated into scispacy, if you think it would be useful! |
Great! Thank you @DeNeutoy Feel free to close 👍 |
@BlakeList did you get it working? Let us know if everything worked well for you! |
Hi @DeNeutoy, Sorry for the slow response, I am currently going down an alternative route. Is there a standard approach to convert between ontology rdfs to umls? Can ontology classes (e.g. TO:0000387 for plant trait) be used as the concept id? Cheers, |
Hi @DeNeutoy , I'm a bit confused! Are you able to provide a sample codebase that was used to create an entity linker component with a custom ontology and relevant resources? |
Hey there!
Firstly, thank you so much for all the hard work you all have put into scispacy! I really appreciate the addition of the transformer and entity-linking.
While I have experience using spacy for ner and rel, I am quite new to ontologies and building spacy entity-linkers/knowledge bases. Would it be possible to get another ontology (specifically, https://github.com/Planteome/plant-trait-ontology) added? Or a tutorial/description of how I could do this myself?
Thank you again,
Blake
The text was updated successfully, but these errors were encountered: