HumanSignal / HumanSignal/label-studio

Taxonomy Alias field is ignored when generating annotation output data

Open
#1,371 3 comments 2 reactions 2 assignees Claimed by @hlomzik View on GitHub
editor problem taxonomy
Dominant language
TypeScript
Stars
28.3k
Forks
3.7k
Avg merge
14h
Merged PRs (30d)
15

Description

# Describe the bug
With the control tag ``, when Label Studio generates the annotation output data, the `value` field of `` is used instead of the `alias` field.

This problem doesn't exist with the control tag ``.

# To Reproduce
[In the Label Studio playground](https://labelstud.io/playground/), run those two test cases:
## 1. Choices = OK
```xml





```
![image](https://user-images.githubusercontent.com/1789921/131173964-e1b415a4-40e1-4000-ba61-898232850acf.png)

## 2. Taxonomy = NOT OK
```xml





```
![image](https://user-images.githubusercontent.com/1789921/131173950-81aad6b9-2391-4b1c-bef0-316863f40804.png)

# Expected behavior
The annotation output data should use the `alias` field instead of the `value` field. In test case 2 above, the annotation output should be:
```json
[
{
"value": {
"taxonomy": [
[
"001"
]
]
},
"id": "OXNSOGlB5U",
"from_name": "MyControlTag",
"to_name": "MyObjectTag",
"type": "taxonomy"
}
]
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.