EntityLinker: Cannot get dimension 'nO' for model 'transformer-listener>>trfs2arrays #7884
-
Hi @svlandeg -- I'm attempting to train an entity linker with a transformer component as a drop-in replacement for the tok2vec layer. I am getting the error:
I checked through this issue but I don't think it's directly related-- happy to be wrong! I'm likely missing something in the config, but I've tried setting nO to 768 rather than null where it's noted in the config and am still getting that error. Here's the config-- any insight would be super appreciated, and thanks in advance! [paths] [system] [nlp] [components] [components.entity_linker] [components.entity_linker.model] [components.entity_linker.model.tok2vec] [components.ner] [components.transformer] [corpora] [corpora.train] [corpora.dev] [training] [training.logger] [training.batcher] [training.batcher.size] [training.optimizer] [training.score_weights] [pretraining] [optimizer] [initialize] [initialize.components] [initialize.components.entity_linker] [initialize.components.entity_linker.kb_loader] [initialize.tokenizer] |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 13 replies
-
Hi! Could you check whether this still happens if you don't put the A related discussion & explanation by Adriane is here: #7811 (reply in thread). In short, 3.0 has some "quircks" when freezing some layers of the listener pattern and training others, like in this case, so until 3.1 we'll have to find a way around that. |
Beta Was this translation helpful? Give feedback.
-
(reposting here to be able to select as answer): Assuming your vectors in the KB are of length 768, this fix should hopefully resolve your problem: #7930 |
Beta Was this translation helpful? Give feedback.
(reposting here to be able to select as answer): Assuming your vectors in the KB are of length 768, this fix should hopefully resolve your problem: #7930