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.4k stars 2.41k forks source link

Taxonomy choices not pre-populated with predictions #970

Closed irogers closed 3 years ago

irogers commented 3 years ago

Describe the bug Taxonomy choices are not pre-populated in labeling view when predictions are present.

To Reproduce

  1. Create new project
  2. Import data
    [
    {
    "data": {
      "text": "You never believe what he did to the country"
    }
    },
    {
    "data": {
      "text": "You never believe what he did to the country"
    },
    "predictions": [
      {
        "result": [
          {
            "value": {
              "taxonomy": [
                [
                  "Online",
                  "Free"
                ],
                [
                  "Offline"
                ]
              ]
            },
            "from_name": "media",
            "to_name": "text",
            "type": "taxonomy"
          }
        ],
        "score": 0.95
      }
    ]
    }
    ]
  3. Set config
    <View>
    <Text name="text" value="$text"/>
    <Taxonomy name="media" toName="text">
    <Choice value="Online">
      <Choice value="UGC"/>
      <Choice value="Free"/>
      <Choice value="Paywall">
        <Choice value="NYC Times"/>
        <Choice value="The Wall Street Journal"/>
      </Choice>
    </Choice>
    <Choice value="Offline"/>
    </Taxonomy>
    </View>
  4. Navigate to project and the click "Label All Tasks:

Expected behavior

  1. New annotation is pre-populated with prediction
  2. Prediciton panel is shown (I toggled this in the Layout tab)

Screenshots image

Environment (please complete the following information):

smoreface commented 3 years ago

Fixed with version 1.3.0 release.