Mandate the sub-label/sub-choices in Conditional Classification
See original GitHub issueThis is my custom template below:
<View>
<Header value="Listen the audio"/>
<Audio name="audio" value="$audio"/>
<Choices name="ontology" toName="audio" zoom="true" showInLine="true" hotkey="ctrl+enter" choice="multiple">
<Choice value="domestic_sound" />
<Choice value="speech" />
</Choices>
<View visibleWhen="choice-selected" whenTagName="ontology" whenChoiceValue="domestic_sound">
<Header value="Select a Choice below for domestic_sound"/>
<Choices name="domestic_sound_choice" toName="audio" showInLine="true" hotkey="ctrl+enter" choice="multiple" required="true">
<Choice value="CLICKING" />
<Choice value="WOOD" />
<Choice value="FRYING" />
<Choice value="SHUFFLING_CARDS" />
</Choices>
</View>
This is the template for conditional classification.
I want to make the sub-classes mandatory if and only if the corresponding choice is selected in main labels.
main labels are below:
<Choices name="**main_choices**" toName="audio" zoom="true" showInLine="true" hotkey="ctrl+enter" choice="multiple">
<Choice value="domestic_sound" />
<Choice value="speech" />
</Choices>
So, If I select domestic_sound
in the above choices, then only sub-choices under domestic_sound
should be mandatory.
When I am adding required=" true"
in the domestic_sound
choices, It mandates the choices under domestic_sound
without even selecting it in the main labels.
Can anyone please help me to get this functionality or behavior? Thanks!
Issue Analytics
- State:
- Created a year ago
- Comments:9 (3 by maintainers)
Top Results From Across the Web
Chapter 13 - Vaccination Mandates: The Public Health ...
This chapter describes the impact of vaccines in dramatically reducing infec tious diseases in the United States, the role of mandatory vaccination in...
Read more >Classification with unknown class-conditional label noise on ...
Abstract. We investigate the problem of classification in the presence of unknown class-conditional label noise in which the labels observed by ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi @makseq, It’s working in the latest version of LS. Thanks!
You can try to do it using SDK: https://labelstud.io/guide/sdk.html#Import-tasks-with-the-Label-Studio-Python-SDK