how to train an NEL model with transformers? #7315
-
Hi I trained an NER model with transformers, and now I want to add entity linking to it. The problem is that the NER model I trained doesn't return any vector representations of text, and for NEL I need to create a knowledge base, where you need to add the entity_vector. when I run this code:
I get the error: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
following up on this, any suggestions? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi @moyid, a related discussion thread is here: #6511. That thread discusses how to set up user hooks to derive the |
Beta Was this translation helpful? Give feedback.
-
@moyid were you able to get this working? I'm still struggling despite reviewing the related thread. |
Beta Was this translation helpful? Give feedback.
Hi @moyid, a related discussion thread is here: #6511. That thread discusses how to set up user hooks to derive the
vector
property from the tensors that are being produced by the transformer in your pipeline. Hope that helps!