-
Notifications
You must be signed in to change notification settings - Fork 7
chore(medcat-gliner): CU-869c3bvm0 Migrate gliner implementation to public #328
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
base: main
Are you sure you want to change the base?
chore(medcat-gliner): CU-869c3bvm0 Migrate gliner implementation to public #328
Conversation
* CU-869bepjj9: Add gliner based NER * CU-869bepjj9: Depend on MedCAT v2.5 and onwards for lazy registration * CU-869bepjj9: Shuffle some code around to do registration separately * CU-869bepjj9: Fix minor logic issue * CU-869bepjj9: Add small registration test * CU-869bepjj9: Add a simple test for creator validation * CU-869bepjj9: Add workflow for gliner * CU-869bepjj9: Pin dependency to 2.0 and higher * CU-869bepjj9: Fix typing issue regards new method in v2.5 * CU-869bepjj9: Add missing dunder init file * CU-869bepjj9: Update tests to do a manual import before medcat 2.5.0 release * CU-869bepjj9: Fix minor tying issue to do with version check * CU-869bepjj9: Fix another minor tying issue to do with version check * CU-869bepjj9: Add a workaround for improper names in component classes to tests
Added a section comparing NER recall between vocab based NER and GliNER implementation using the 2023 SNOMED CT Linking Challenge dataset.
…/medcat-gliner/CU-869c3bvm0-migrate-gliner-implementation-to-public
… (for lazy registration)
|
Task linked: CU-869c3bvm0 Migrate gliner NER to a public project |
…to main workflow" This reverts commit 2c15273.
tomolopolis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm - similar comments as #327
|
|
||
| Args: | ||
| doc (MutableDocument): | ||
| Spacy document to be annotated with named entities. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
its a spacy like document, but it might not be a real spacy doc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just do this in __init__.py directly?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wanted to keep the __init__ cleaner in terms of what's in its global state. I.e so that when you import medcat_gliner you don't get some registration things that aren't really useful for a user.
This PR migrates the gliner based implementation from
cogstack-opsto the publiccogstack-nlpwith all its history (hopefully) intact.Also added the relevant workflow(s).