Open minhduc0711 opened 1 year ago
Describe the bug After importing predicted data into Label Studio, a Choices prediction is modified. However, when exporting the annotations, the origin attribute has the value prediction instead of prediction-changed.
Choices
origin
prediction
prediction-changed
To Reproduce Steps to reproduce the behavior:
<View> <Choices name="gender" toName="txt-1" choice="single-radio"> <Choice alias="M" value="Male" /> <Choice alias="F" value="Female" /> <Choice alias="NB" value="Nonbinary" /> <Choice alias="X" value="Other" /> </Choices> <Text name="txt-1" value="$text" /> </View>
Import the following predicted data (Male is selected):
Male
[{ "data": { "text": "Lorem ipsum bla bla." }, "predictions": [{ "model_version": "one", "score": 0.5, "result": [ { "id": "some_id", "type": "choices", "from_name": "gender", "to_name": "txt-1", "value": { "choices": ["M"] } }] }] }]
Female
Expected behavior origin should have the value prediction-changed in the exported JSON. The relevant part in the actual exported JSON:
"result": [ { "value": { "choices": [ "F" ] }, "id": "some_id", "from_name": "gender", "to_name": "txt-1", "type": "choices", "origin": "prediction" } ], ... "prediction": { "id": 80662, "model_version": "one", "created_ago": "0 minutes", "result": [ { "id": "some_id", "type": "choices", "from_name": "gender", "to_name": "txt-1", "value": { "choices": [ "M" ] } } ],
Environment (please complete the following information):
Currently this works only for labeling, not for classification. We'll file a bug and will fix it.
Hi! We are experiencing the same problem. Any update on the fix? @hlomzik
Describe the bug After importing predicted data into Label Studio, a
Choices
prediction is modified. However, when exporting the annotations, theorigin
attribute has the valueprediction
instead ofprediction-changed
.To Reproduce Steps to reproduce the behavior:
Import the following predicted data (
Male
is selected):Female
and click Submit.Expected behavior
origin
should have the valueprediction-changed
in the exported JSON. The relevant part in the actual exported JSON:Environment (please complete the following information):