Textcat with transformer listener #11187
Replies: 2 comments 5 replies
-
When using a listener you should use a Listener architecture in the config. For an example, in the quickstart widget you can choose textcat/GPU/accuracy and you'll see a section like this:
The |
Beta Was this translation helpful? Give feedback.
-
Well, I wanted to take source transformer (en_trf): In general my pipeline should looks like: When I'm trying to do like this:
I've got:
|
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'm trying to create fully independent transformer textcat component using en_trf transformer to fine-tune and replace listener, somebody can help/share with config how I can handlle that?
My aprouch was:
Got:
✘ Config validation error
textcat_multilabel.model -> tok2vec instance of Model expected
{'@architectures': 'spacy.TextCatCNN.v1', 'exclusive_classes': False, 'nO': None, 'tok2vec': {'replace_listeners': ['model.transformer']}}
Beta Was this translation helpful? Give feedback.
All reactions