How to let Knowledge base works ignore upper/lower case #7801
Replies: 1 comment 4 replies
-
Hi! From spaCy v3.0 onwards, it should (hopefully) be relatively straightforward to tune the candidate generation to your needs. The candidate generation step selects all relevant IDs from the Knowledge base, given a certain textual mention. More specifically, it needs to be a function that takes a The default candidate generation method is
You should be able to overwrite this behaviour by defining your own candidate generator, e.g. something like this:
And then you'd define this candidate generator in your config file:
Let us know if you run into issues with that! |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
currently I have kb which all upper cased, it Entity linker failed to get kb_id when do prediction on lowered text. could you please help how to solve it
Beta Was this translation helpful? Give feedback.
All reactions