Shared embeddings layer between ner & entity_linker
#9291
Replies: 4 comments 2 replies
-
|
Hi! Can you share the config & training command? That will help us understand what exactly you're trying to do, replicate the issue, and see whether it's something we could address on our end or not. Thanks! |
Beta Was this translation helpful? Give feedback.
-
|
Yes sure, here is an example https://github.com/Joozty/ner_nel_shared_embed_layer |
Beta Was this translation helpful? Give feedback.
-
|
This could be related to #9310 and it's likely a bug. I'll look into it! |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for your sample project and details about this - your analysis of the batches being an issue is correct, and this is a bug and the Entity Linker doesn't work with listeners. The listener requires components to not make certain kinds of modifications to incoming batches, but the Entity Linker predates the listener, so it didn't follow that requirement. We'll need to rework the NEL component some to make this work. I should be able to start on a PR to fix this soon, I'll link here when I do. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Today I wanted to use shared embedding layer feature in my training. I am training
ner+entity_linkerpipelines. However, my training is failing onMismatched IDs received by the Tok2Vec listener: {id1} vs. {id2}error.I looked at the code and found out that EL pipeline sends slightly different batch to the
tok2vecmodel. Basically when there is a sentence containing two annotations it sends downs two docs (['sentence_entity_1', 'sentence_entity2']) instead of one.So I was wondering if you plan to support this feature?
Beta Was this translation helpful? Give feedback.
All reactions