Language Studio Entity Heirarchy
Hello everyone,
I am currently working on a project using Language Studio, and I am facing challenges with labelling nested entities and conditions. Specifically, I am trying to create a hierarchy where conditions can contain fields, values, and operators. However, the current labelling approach in Language Studio does not seem to support this hierarchy.
For example, when I label the condition (firstname is Kyle or email is kyle@example.com)
, the system labels the entire bracketed section as a condition and then separates the individual components, which results in mislabelling such as is
being marked as a condition.
Here’s a more detailed breakdown of my issue:
Utterance:
Find customer where firstname is Alice and (county is Antrim or PostCode is BT28 1TT)
Expected Labels:
- Action: Find customer
- Field: firstname
- Value: Alice
- Operator: and
- Condition: (county is Antrim or PostCode is BT28 1TT)
5.1) Field: county
5.2) Value: Antrim
5.3) Operator: or
5.4) Field: PostCode
5.5) Value: BT28 1TT
What actually happens is that the entire bracketed section is labelled as a condition, and the individual components are not correctly nested. This results in parts like is
and parentheses being mislabelled as conditions.
Given this, it’s clear that the system isn’t handling nested entities as expected, leading to incorrect labelling.
Could anyone provide guidance or best practices for labelling nested entities and conditions in Language Studio. Is there a way to achieve the desired hierarchical structure, or are there any alternative approaches or tools that you recommend for handling complex conditions?
Any assistance or insights would be greatly appreciated.
Thank you!