Jointly training rel_component with textcat_multilabel raises ValueError during backpropagation? #7651
-
Hi! I'm trying to train the demo rel_component pipeline jointly with textcat_multilabel, but can't seem to get it to work. Specifically, it raises a ValueError during the textcat back propagation. Any pointers to why this is happening or how to fix it would be greatly appreciated! Here's how I can minimally reproduce this error:
doc.cats = {
"a": random(),
"b": random(),
"c": random(),
}
Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Thanks for the report, I can reproduce this and am looking into this. For now: it looks as if it does work correctly if you switch the order of the |
Beta Was this translation helpful? Give feedback.
Thanks for the report, I can reproduce this and am looking into this.
For now: it looks as if it does work correctly if you switch the order of the
textcat_multilabel
and therelation_extractor
in the pipeline (which is already weird by itself)...