Issue Training Spancat with Transformers Component #10155
-
Hi, I generated a config for spancat data on prodigy. I tried to adapt the config to accommodate a transformers component using the guidance at https://spacy.io/usage/embeddings-transformers#transformers. When I run the debug data command, I receive "ValueError: Cannot get dimension 'nO' for model 'transformer-listener': value unset." Obviously the nO value is null by default, but I wasn't able to find a resource for how to adapt the spancat training pipeline to work with transformers, so I'd appreciate knowing any other modifications to the config that should make the transformers component compatible.
My config and error messages are reproduced below.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You have a TransformerListener but no Transformer for it to listen to. There are multiple ways to do this but usually we would put a Transformer in the pipeline (so You can see what this looks like by using the quickstart to get a config with a Transformer for another component (say textcat). You may find it easier to set up the config by taking a config like that and replacing the parts for the component you're not using with your spancat bits. |
Beta Was this translation helpful? Give feedback.
You have a TransformerListener but no Transformer for it to listen to. There are multiple ways to do this but usually we would put a Transformer in the pipeline (so
pipeline = ["transformer", "spancat"]
, and there's a block for it).You can see what this looks like by using the quickstart to get a config with a Transformer for another component (say textcat). You may find it easier to set up the config by taking a config like that and replacing the parts for the component you're not using with your spancat bits.