Skip to content

fix: skip linker candidates missing from the knowledge base#620

Open
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/linker-skip-unknown-concepts
Open

fix: skip linker candidates missing from the knowledge base#620
Chessing234 wants to merge 1 commit into
allenai:mainfrom
Chessing234:fix/linker-skip-unknown-concepts

Conversation

@Chessing234

Copy link
Copy Markdown

Summary

  • Look up KB entities with .get() before checking definitions
  • Skip candidates whose concept ID is absent from cui_to_entity

Bug

Stale or mismatched candidate IDs raised KeyError during entity linking.

Test plan

  • Link text when a candidate concept ID is missing from the loaded KB

Made with Cursor

Look up entities with .get() to avoid KeyError on stale candidate IDs.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant