HumanSignal / label-studio

Label Studio is a multi-type data labeling and annotation tool with standardized output format
https://labelstud.io
Apache License 2.0
18.24k stars 2.29k forks source link

ML backend fails on labeling config validation with control tags #3934

Closed LouisHeck closed 1 year ago

LouisHeck commented 1 year ago

I was doing Relation Extraction Task, labeling Tag used a relation extraction template. When I add model for machine learing predictions, it throws as error for control_type: RectangleLabels. But I've setting template for relation extraction. what's wrong ? Why the control type is RectangleLabels ,not Relation Extraction labels?

screen shot 1: labeling template 1680190352751

screen shot 2: error message from ml-backend for control type.

1680190491381

Please Help me , Many thanks!

makseq commented 1 year ago

Why the control type is RectangleLabels ,not Relation Extraction labels?

check line 14 in your ml backend code, RectangleLabels tag is specified there.

LouisHeck commented 1 year ago

Why the control type is RectangleLabels ,not Relation Extraction labels?

check line 14 in your ml backend code, RectangleLabels tag is specified there.

Yes, you're right. I pass error tags in parsed_label_config() function. After changed, it works. Thank you for your help!