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.3k stars 2.3k forks source link

Machine Learning backend scripts are not running for HTML documents #1415

Open pyturn opened 3 years ago

pyturn commented 3 years ago

Hi Team,

I added the machine learning backend succesfully and trained model for both NER and Text classification task (when I imported the CSV documents). But when I am adding the NER backend for HTML documents , I am facing issues -

Here is my Labelling configuration -

image

Here is the error I am facing -

image

I think its not working because of HyperTextlabels (which are not actually parsed by the backend) in labelling configuration. Please let me know how I can resolve this.

Thanks

KonstantinKorotaev commented 3 years ago

Hi @pyturn This error tells you that you have more than 1 tag in your labeling config. If you want to use current labeling config as is you can just comment line:

assert len(self.parsed_label_config) == 1

and proceed with your predictions.