Label-studio: Switching between completions and predictions will remove my labelling from text

Created on 29 Sep 2020  路  5Comments  路  Source: heartexlabs/label-studio

Describe the bug

  • when I switch between completions and predictions will lose my labels from the text, which is already labeled previously.

To Reproduce
Steps to reproduce the behavior:

  1. Create a NER based project and import completions and predictions
[
  {
    "predictions": [
      {
        "created_ago": "2020-06-17T13:42:06.499Z",
        "created_username": "admin",
        "honeypot": false,
        "id": 1,
        "lead_time": 5.542,
        "result": [
          {
            "from_name": "label",
            "id": "HNmOUgR3rR",
            "source": "$text",
            "to_name": "text",
            "type": "labels",
            "value": {
              "end": 47,
              "labels": [
                "Fact"
              ],
              "start": 42,
              "text": "water"
            }
          },
          {
            "from_name": "label",
            "id": "1oDqSgNvL8",
            "source": "$text",
            "to_name": "text",
            "type": "labels",
            "value": {
              "end": 34,
              "labels": [
                "Ordinal"
              ],
              "start": 26,
              "text": "yourself"
            }
          }
        ]
      }
    ],
    "data": {
      "text": "To have faith is to trust yourself to the water"
    },
    "id": 0
  }
]
  1. Go to the labeling page
  2. Switch between completions and predictions
  3. See an error, that not able to see the label selected on the text

Screenshots
ezgif com-video-to-gif

Environment (please complete the following information):

Additional context

  • I've compared between master and tmp/deserialize branch
bug

Most helpful comment

Thanks, @hlomzik @makseq for solving the issues. I think you've also solved the above issue as well. So I'm closing, the issue is no more persist.

All 5 comments

I've compared between master and tmp/deserialize branch

Is there no difference between in versions for this bug?

@makseq
In the tmp/deserialize branch when I switch between completions to predictions and predictions to completions then my already labeled text will be removed (see below screenshots)

Before switching

Here February 22 text is labeled with Date
image

After switching from completions to predictions and predictions to completions

Here February 22 text is not showing that it is labeled or not but at RHS it is showing in the region that text is labeled
image

@hlomzik @makseq
Even Show labels inside the regions is not working in tmp/deserialize

Current

image

Old

image

Hi, @ghanshyamdev thank you for reports!
The first part is fixed and released both to LSF and LS release branch. The second part about labels in text I'll fix soon. Sorry for inconvenience

Thanks, @hlomzik @makseq for solving the issues. I think you've also solved the above issue as well. So I'm closing, the issue is no more persist.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

atakanokan picture atakanokan  路  3Comments

kasuteru picture kasuteru  路  3Comments

kgeis picture kgeis  路  4Comments

dalekube picture dalekube  路  3Comments

mimre25 picture mimre25  路  6Comments