How add new label to textcat model #13156
-
Hi, I'm trying to add new labels to textcat model with this config but I'm getting this error: I readed that with TextCatBOW.v2 model is resizable but I don't know what I'm doing wrong thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi! |
Beta Was this translation helpful? Give feedback.
Hi!
spacy.TextCatBOW.v2
andspacy.TextCatCNN.v2
are indeed resizable, butspacy.TextCatEnsemble.v2
isn't and that's the main architecture of yourtextcat
component. If you need a resizable textcat component, you should swap out the ensemble architecture to use either BOW or the CNN.