Can't find component 'spancat' in pipeline

Hi i want to continue labeling on an allready trained modell.

python -m prodigy spans.correct fehler_db .\SpanCat\model-best .\Prodigy\Data\data.json --label FEHLERMELDUNG

It says: Can't find component 'spancat' in pipeline.

My pipeline shows spancat_singlelabel as a component:

[('tok2vec', <spacy.pipeline.tok2vec.Tok2Vec object at 0x00000222CC934A00>), ('spancat_singlelabel', <spacy.pipeline.spancat.SpanCategorizer object at 0x00000222CC935240>)]

Oh man... reading the error certainly helps. I fixed it by defining the component manually:

python -m prodigy spans.correct fehler_db .\SpanCat\model-best .\Prodigy\Data\data.json --label FEHLERMELDUNG --component spancat_singlelabel

1 Like