label-studio: The template does not work.

Describe the bug I try this template. But, It doesn’t work.

To Reproduce Steps to reproduce the behavior:

  1. Create New project
  2. import json data
{
    "dialogue": [
        {
            "author": "Mia Wallace:",
            "text": "Dont you hate that?"
        },
        {
            "author": "Vincent Vega:",
            "text": "Hate what?"
        },
        {
            "author": "Mia Wallace:",
            "text": "Uncomfortable silences. Why do we feel its necessary to yak about bullshit in order to be comfortable?"
        },
        {
            "author": "Vincent Vega:",
            "text": "I dont know. That is a good question."
        }
    ]
}
  1. Set Labeling interface
<!--Labeling configuration to label paragraph regions of text containing dialogue-->
  <View>
    <Paragraphs name="dialogue-1" value="$dialogue" layout="dialogue"/>
    <ParagraphLabels name="importance" toName="dialogue-1">
      <Label value="Important content"/>
      <Label value="Random talk"/>
    </ParagraphLabels>
  </View>
  1. See error
Task data (provided as $dialogue) has wrong format.
It should be an array of objects with fields, defined by nameKey ("author" by default) and textKey ("text" by default)
Provided data is not an array

Expected behavior I expected to act like the output of the template.

Screenshots image

Environment (please complete the following information):

  • OS: Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-42-generic x86_64)
  • Label Studio Version: 1.3.post0
  • use conda

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Hi @makseq. I am also having issues with the Intent Classification and Slot Filling template. I am on version 1.4 of LabelStudio. I do not see this issue marked against any commits in master: https://github.com/heartexlabs/label-studio/commits/master?after=882547631c14000570ca3793a82f0ed65e8a743f+349&branch=master. Can you please point me to the fix? Thank you