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
19.54k stars 2.42k forks source link

Granularity option for <Paragraphs> #2012

Open niedakh opened 2 years ago

niedakh commented 2 years ago

Is your feature request related to a problem? Please describe. NER annotation in dialogues is very uncomfortable and more time consuming without granularity option.

Describe the solution you'd like Option granularity="word" working with <Paragraphs>

Describe alternatives you've considered I now have to hack a javascript userscript to introduce paragraph formatting to <Text> NER annotation.

makseq commented 2 years ago

@niedakh Could you please share your labeling config? What LS version do you use?

thuan00 commented 2 years ago

Hi @makseq, thank you guys for this work.

I'm having similiar request, with version and label config provided below.

LS version: 1.5.0post0

config:

<View>
  <Paragraphs name="dialogue-1" value="$dialogue" layout="dialogue" granularity="word"/>
  <ParagraphLabels name="importance" toName="dialogue-1">
    <Label value="Important content"></Label>
    <Label value="Random talk"></Label>
  </ParagraphLabels>
</View>

I tried on the playground at current time.

Hope paragraph granularity can be supported in the future.

If I have some free time, I will be willing to look into the code to contribute.