Assemble Transformer Ner with trained Spancat model #11775
Replies: 3 comments 8 replies
-
Reading other discussions I tried one solution to train the pipeline with freezing components other than transformer and spancat. But i getting ValueError: Cannot get dimension 'nO' for model 'transformer-listener': value unset
Error stack:
|
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The reason your config based solution isn't working is that you aren't using See the docs on shared embeddings for more information about how to share embeddings and the tradeoffs involved. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a Spancat-transformer trained model and I am trying to assemble it with Pre-trained "en_core_web_trf" with NER and the assembled pipeline is not giving right results.
Here is what my spancat transformer model looks like which is producing results as expected
Here is the config for assembling it together
But my assembled pipeline is not working as expected -
however if i try to do outside the config like below I am getting the right results:
But my assumption the about code will increase the memory footprint and I need to assemble them all together as one model hence need the assemble_config to be working.
Beta Was this translation helpful? Give feedback.
All reactions