Hello Paul Bradley,
Greetings and Welcome to Microsoft Q&A! Thanks for posting the question.
I understand that you're dealing with a complex scenario in Language Studio. Here are some best practices effectively label nested entities and conditions in Language Studio,
- Breaking down complex conditions into components. Instead of treating an entire condition as a single entity, label each part individually, such as labeling
county
as the Field,is
as the Operator, andAntrim
as the Value. This approach ensures precise labeling of smaller units. - Leverage custom preprocessing to flatten the hierarchical structure before labeling. For instance, split
(county is Antrim or PostCode is BT28 1TT)
into smaller subconditions likecounty is Antrim
andPostCode is BT28 1TT
, enabling easier identification of fields, operators, and values. - Use hierarchical labeling strategies to differentiate levels of conditions, such as tagging top-level and nested conditions separately with labels like
Condition_Level1
andCondition_Level2
. - Adopt sequential labeling by training the model to recognize simpler entities like
Field
andValue
first, and then progressively introducing more complex relationships such as nested conditions.
Kindly refer this Label your utterances in Language Studio.
I hope you understand. And, if you have any further query do let us know.
Thank you!