Description
Description: I work with complex HTMLs, including intricate table structures. My ML backend predictions rely on static XPaths to highlight specific elements in Label Studio. However, the XPaths generated by my backend do not align with the Label Studio DOM, resulting in predictions that fail to display properly.
Proposed Solutions:
- Option to Pass Label Studio DOM to Predict Endpoint:
Allow the serialized Label Studio DOM to be sent to the predict endpoint as part of the request. This would enable the backend to generate XPaths that align with the Label Studio DOM.
To minimize unnecessary data traffic, this functionality could be optional and enabled only for tasks requiring it.
or
2. Provide support for dynamic XPaths to bypass the necessity of having an exact DOM match.
or
3. Provide Documentation for DOM Alignment:Alternatively, detailed documentation on how to structure or format custom DOMs in Python to match the Label Studio DOM would be immensely helpful. I’ve spent significant time trying to achieve this alignment but have faced challenges understanding the exact requirements.
Additional Note: Thank you for creating this fantastic software. It’s been incredibly helpful in streamlining my annotation workflows, and I look forward to seeing it evolve further!